This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17743] dependent expressions in attributes
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Oct 2005 22:34:51 -0000
- Subject: [Bug c++/17743] dependent expressions in attributes
- References: <bug-17743-365@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #24 from mark at codesourcery dot com 2005-10-05 22:34 -------
Subject: Re: dependent expressions in attributes
rth at gcc dot gnu dot org wrote:
> ------- Comment #23 from rth at gcc dot gnu dot org 2005-10-05 21:16 -------
> I'm surprised this is considered tricky. Seems to me you just stuff the
> attribute away in the parse tree somewhere and pretend we've just read it
> in during template instantiation. That's what we do with everything else
> related to templates after all.
>
> "A mere matter of programming", I'd think.
I agree. There may be some attributes which need to be processed at
parse-time, before instantiation-time, but that's just more programming.
I'd expect it to involve touching rather more code than one would
like, though...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17743