[PATCH] D14358: DWARF's forward decl of a template should have template parameters.
Paul Robinson via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 4 17:53:52 PST 2015
probinson added a comment.
GCC 4.8.4 on Linux doesn't produce these, but DWARF 4 section 5.5.8 says a class template instantiation is just like the equivalent non-template class entry, with the exception of the template parameter entries. I read that as meaning an incomplete description (i.e. with DW_AT_declaration) lets you omit all the other children, but not the template parameters.
I don't think omitting the template DIEs was an intentional optimization, in the sense of being a decision separate from deciding to emit the incomplete/forward declaration in the first place. They were just omitted because we were omitting everything, but everything turns out to be non-compliant.
http://reviews.llvm.org/D14358
More information about the cfe-commits
mailing list