Debian Codegraph @

gcc/testsuite/g++.dg/template/crash56.C

raw
1 // Origin: Wolfgang Bangerth <[email protected]>
2
3 // PR c++/28705
4 // DR 218 is debating whether this is well formed or not. We've never
5 // accepted it (because we'd crash), so we continue to reject it, but
6 // without crashing.
7
8 namespace N
9 {
10 struct A { A (A*); };
11 }
12
13 template<typename T> void g (N::A *p)
14 {
15 (void) A (p); // { dg-message "" }
16 }