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

Re: [PATCH] PR c++/42225


On 12/09/2009 04:59 PM, Dodji Seketeli wrote:
On Wed, Dec 09, 2009 at 10:12:12AM -0500, Jason Merrill wrote:

I'd have thought so, but apparently removing the tests crashes on some
libstdc++ code, for instance. No template info was created in that case
because the typedef decl was created in a function template, not as a class
template member. So grokdeclarator creates the typedef without
DECL_LANG_SPECIFIC, so it doesn't have any template info.

Ah...so does this break if we have two typedefs to the same type in a function template? In that case I think we'd want to compare the template parameters of the enclosing scope.


Jason


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