C++ PATCH for c++/31187
Jason Merrill
jason@redhat.com
Mon Apr 2 16:57:00 GMT 2007
The bug here was that the duplicate declaration was causing the compiler
to think that foo1 was a const that gets implicit static, and therefore
not a valid template argument. Fixed by remembering TREE_PUBLIC on the
new decl across the call to duplicate_decls.
Tested x86_64-pc-linux-gnu, applied to trunk and 4.2 branch.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implicit-static.patch
Type: text/x-patch
Size: 3907 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070402/f1592061/attachment.bin>
More information about the Gcc-patches
mailing list