------- 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. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17743