gcc/testsuite/g++.dg/parse/ptrmem3.C
raw| 1 | // Copyright (C) 2005 Free Software Foundation, Inc. |
| 2 | // Contributed by Nathan Sidwell 14 Feb 2005 <[email protected]> |
| 3 | |
| 4 | // Origin: Volker Reichelt <[email protected]> |
| 5 | // Bug 19895: ICE on invalid |
| 6 | |
| 7 | |
| 8 | template<typename> struct A |
| 9 | { |
| 10 | int A<0>::* p; // { dg-error "(type/value mismatch)|(expected)" } |
| 11 | }; |