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

2006-10-14 Thread pinskia at gmail dot com


--- Comment #6 from pinskia at gmail dot com  2006-10-14 18:26 ---
Subject: Re:  [DR 224] error: non-template 'pair' used as
template

On Sat, 2006-10-14 at 18:25 +, pinskia at gcc dot gnu dot org wrote:
> 
> --- Comment #5 from pinskia at gcc dot gnu dot org  2006-10-14 18:25 
> ---
> DR 224 says this is invalid code 

Sorry valid code.

-- Pinski


-- 


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



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

2006-10-14 Thread Andrew Pinski
On Sat, 2006-10-14 at 18:25 +, pinskia at gcc dot gnu dot org wrote:
> 
> --- Comment #5 from pinskia at gcc dot gnu dot org  2006-10-14 18:25 
> ---
> DR 224 says this is invalid code 

Sorry valid code.

-- Pinski



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

2006-10-14 Thread pinskia 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  struct B : T
{
  void g(void) { B x; x.f(); }
}

struct A
{
  void f(void) {}
}

int main(void)
{
  B 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



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

2006-10-14 Thread pinskia at gcc dot gnu dot org


--- Comment #4 from pinskia at gcc dot gnu dot org  2006-10-14 18:15 ---
I think this is more complicated than just DR 224.
See PR 9634.


-- 


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



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

2006-10-14 Thread pinskia at gcc dot gnu dot org


--- Comment #3 from pinskia at gcc dot gnu dot org  2006-10-14 18:11 ---
(In reply to comment #2)
> The real question is avm_map dependent inside the nested class?
> I know there are C++ defect reports asking that question so ...
And that is DR 224 which is in WP.


-- 


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