[Bug c++/44641] Generated constructors and destructors get wrong debug location when a typedef uses a forward declaration of the type before the definition

jyasskin at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 15 00:35:00 GMT 2010



------- Comment #1 from jyasskin at gmail dot com  2010-07-15 00:34 -------
My current guess is that the bug is at parser.c:16741, at the end of
cp_parser_class_head():
    DECL_SOURCE_LOCATION (TYPE_NAME (type)) = type_start_token->location;

This updates the template's location, but it doesn't update the locations of
any instantiations that have already been created. I'm going to try to find the
existing instantiations to update them there.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44641



More information about the Gcc-bugs mailing list