This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29469] [DR 224] error: non-template 'pair' used as template
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2006 18:25:16 -0000
- Subject: [Bug c++/29469] [DR 224] error: non-template 'pair' used as template
- References: <bug-29469-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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