[cfe-dev] TreeTransform question

Chris Lattner clattner at apple.com
Thu Feb 17 12:48:28 PST 2011


On Feb 17, 2011, at 8:58 AM, Douglas Gregor wrote:

>> 
>> Assertion failed: (D->isInvalidDecl() && "declaration was not instantiated in this scope!"), function findInstantiationOf, file SemaTemplateInstantiate.cpp, line 2206.
>> 
>> What is the right level to instantiate the label decl?  It seems that I could just make TransformDecl do the instantiation... is this the best place to do it?
> 
> 
> You could teach TransformDecl to look into the current instantiation scope (first) to see if the LabelDecl has been instantiated already; if not, go ahead and instantiate the LabelDecl.

Thanks Doug, that worked!

-Chris



More information about the cfe-dev mailing list