Sign in
gnu
/
gcc
/
19220ca6aa79921cc431e41f25986e16410c7a6a
/
.
/
gcc
/
testsuite
/
g++.dg
/
parse
/
typedef4.C
blob: 03f709a184d17c05602d028226450328634c6a61 [
file
] [
log
] [
blame
]
// { dg-do compile }
// Origin: Matt Austern <austern@apple.com>
// PR c++/7983: ICE typedef to typename as friend.
template
<
class
T
>
class
smart_ptr2
{
T
*
real_ptr
;
public
:
typedef
typename
T
::
subT td
;
friend
class
td
;
// { dg-error "typedef" }
};