Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/parse/typedef4.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // { dg-do compile } |
2 | |
3 // Origin: Matt Austern <austern@apple.com> | |
4 | |
5 // PR c++/7983: ICE typedef to typename as friend. | |
6 | |
7 template<class T> class smart_ptr2 { | |
8 T* real_ptr; | |
9 public: | |
10 typedef typename T::subT td; // { dg-message "previous declaration" } | |
11 friend class td; // { dg-error "typedef|not name a class" } | |
12 }; |