[C++ PATCH] Fix a regression from build_cplus_array_type recent change (PR c++/54038)

Jason Merrill jason@redhat.com
Fri Jul 20 16:11:00 GMT 2012


On 07/20/2012 09:26 AM, Jakub Jelinek wrote:
> As detailed in the PR, I believe we should only add c into m's variant chain
> if m's element type is the main variant of c's element type.

We want c to get onto the appropriate variant chain even if it isn't 
m's, so I'm applying this patch instead.

Tested x86_64-pc-linux-gnu, applying to trunk and 4.7.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 54038.patch
Type: text/x-patch
Size: 2287 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120720/33170f3b/attachment.bin>


More information about the Gcc-patches mailing list