This is the mail archive of the gcc@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]

Re: typename bug ?


>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:

 >> (HP aCC 1.15 flags (1) as an error, but Dec cxx 6.1 does not)

 > The code is correct, as long as `ptr' is found to be a type at
 > template instantiation time.

No.  The compiler must know when the template is parsed whether a name is a
type.

Jason


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