blob: a5b826a8e69ee7cee1a2da7bded54e74dff954bc [file] [log] [blame]
// Author: Dodji Seketeli <dodji@redhat.com>
// Origin: PR c++/26693
// { dg-do compile }
class Alpha
{
typedef int X; // { dg-message "private" }
};
template<int>
class Beta
{
typedef int Y; // { dg-message "private" }
};
template <int>
int
bar ()
{
Beta<0>::Y i = 0; // { dg-error "within this context" }
return Alpha::X (); // { dg-error "within this context" }
}
int i = bar<0> ();