Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.old-deja/g++.pt/typename26.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 assemble } |
2 // | |
3 // Copyright (C) 2000 Free Software Foundation, Inc. | |
4 // Contributed by Nathan Sidwell 9 Aug 2000 <nathan@codesourcery.com> | |
5 | |
6 // We failed to spot where a typename T::t didn't actually declare | |
7 // anything. [7.1.5.3]/1 | |
8 | |
9 template<class LB> struct C | |
10 { | |
11 typename LB::DataType; // { dg-error "" } does not declare anything | |
12 typename LB::DataType m; | |
13 }; | |
14 | |
15 struct B {}; | |
16 struct A { | |
17 B; // { dg-error "" } does not declare anything | |
18 B m; | |
19 }; |