C++ PATCH for c++/58632 (ICE with class shadowing template parm)
Jason Merrill
jason@redhat.com
Tue Jan 28 18:46:00 GMT 2014
This ICE was introduced when I adjusted lookup_and_check_tag to find
template template parameters so that they can be friends. But in this
case that meant we started to try to define the ttp as a class, leading
to chaos. In lookup_and_check_tag we can tell that we're in a class
definition by looking at the scope, and then ignore ttp in that specific
context.
Tested x86_64-pc-linux-gnu, applying to trunk and 4.8.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 58632.patch
Type: text/x-patch
Size: 1766 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140128/9e0f3219/attachment.bin>
More information about the Gcc-patches
mailing list