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

[4.6.2] problem compiling templates


Hello everybody,

I noticed strange problem using gcc4.6.2, see please attached file.

Compiling this file I get:

In member function 'void Test<_enum>::foo()':
error: declaration of 'Predicate _enum'
error:  shadows template parm 'Enum _enum'

However it's enough to create intermediate object to avoid this problem (it also compiles ok with gcc3.4.3).

Am I doing wrong something here or this is known problem?

Regards,
Bogdan


Attachment: test.cpp
Description: Text document


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