Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
typedef3.C
blob: 3f6a7cb91b48f6bb2422670e45a1919b2e0c43e3 [
file
] [
log
] [
blame
]
// PR c++/3004
// Origin: Travis J.I. Corcoran <tjic@permabit.com>
// { dg-do compile }
struct
A
{
typedef
A
*
Ptr
;
};
// { dg-message "previous declaration" }
struct
A
::
Ptr
;
// { dg-error "typedef|not declare anything" }