This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: templates and function attributes don't play well together
- To: kosak at cs dot cmu dot edu
- Subject: Re: templates and function attributes don't play well together
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 9 Jun 2000 09:31:09 +0200
- CC: bug-gcc at gnu dot org
- References: <17582.960501791@amphipolis.cmcl.cs.cmu.edu>
> 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