OSDN Git Service

PR c++/47705
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / crash56.C
1 // Origin: Wolfgang Bangerth <bangerth@dealii.org>
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 }