C++ PATCH for c++/51827 (mangling error with PCH and LTO)

Jason Merrill jason@redhat.com
Mon Jan 16 21:30:00 GMT 2012


When outputting PCH/LTO, the compiler tries to generate mangled names 
for all decls before discarding language-specific data.  But that 
doesn't make sense for templates, and leads to conflicts in this case. 
Fixed by refusing to mangle templates.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 51827.patch
Type: text/x-patch
Size: 1623 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120116/b3e4e3e5/attachment.bin>


More information about the Gcc-patches mailing list