blob: e07ed49de8a9b50c0e3fca440a49dd9dabfc8111 [file] [log] [blame]
// PR c++/10150
// Origin: Tom Evans <te200@eng.cam.ac.uk>
// { dg-do compile }
template <int I> struct A
{
template <int> struct B
{
enum { e = I * A<I-1>::B }; // { dg-error "dependent-name" "depname" }
// { dg-message "note" "note" { target *-*-* } .-1 }
};
};
A<0>::B<0> a; // { dg-message "required" }