This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/29469] [DR 224] error: non-template 'pair' used as template



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-10-14 18:25 -------
DR 224 says this is invalid code but GDR has mentioned that DR 224 is broken in
really bad way:

template <class T> struct B : T
{
  void g(void) { B x; x.f(); }
}

struct A
{
  void f(void) {}
}

int main(void)
{
  B<A> t;
  t.g();
}

The above code would be invalid code with the resulution of DR 224.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29469


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]