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]

Re: templates and function attributes don't play well together


> I'll leave the analysis to the experts, but in my opinion the
> fundamental source of the problem is that function attributes really
> want to be part of the language's type system, so that they can
> participate in template matching, name mangling, and the like.

Thanks for your bug report. I believe this is not a bug (that needs to
be corrected), but an implementation limitation (the code you write is
simply not supported by gcc). The limitation should be documented, of
course, and preferably, the compiler should reject your code.

Regards,
Martin

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