Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/parse/missing-template1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/8736 // Origin: Peter Kolloch <pkolloch@gmx.ne> // { dg-do compile } template <typename T> struct A { template <typename U> struct B { typedef int X; }; }; template <typename T> void foo() { typedef typename A<T>::B<T>::X Y; // { dg-error "non-template" "non" } // { dg-error "not declare" "decl" { target *-*-* } .-1 } // { dg-message "note" "note" { target *-*-* } .-2 } } void bar() { foo<int>(); }