gcc/testsuite/g++.dg/parse/ptrmem2.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | // Copyright (C) 2004 Free Software Foundation, Inc. |
| 4 | // Contributed by Nathan Sidwell 2 Dec 2004 <[email protected]> |
| 5 | |
| 6 | // PR 18782: ICE with ptr-to-member |
| 7 | // Origin: Volker Reichelt <[email protected]> |
| 8 | |
| 9 | namespace A {} |
| 10 | |
| 11 | int A::* p; // { dg-error "is a namespace" } |