Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / crash56.C
blob03bddf42a572322f732e835768e870257656859d
1 // Origin: Wolfgang Bangerth <bangerth@dealii.org>
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.
8 namespace N
10   struct A { A (A*); };
13 template<typename T> void g (N::A *p)
15   (void) A (p); // { dg-message "" "" }