Bug 85479 - ice in inc_refcount_use
Summary: ice in inc_refcount_use
Status: RESOLVED DUPLICATE of bug 85462
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 8.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-20 09:00 UTC by David Binderman
Modified: 2018-04-20 09:16 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
gzipped C++ source code (488.33 KB, application/gzip)
2018-04-20 09:00 UTC, David Binderman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2018-04-20 09:00:28 UTC
Created attachment 43997 [details]
gzipped C++ source code

The attached C++ code, when compiled by recent trunk gcc, does this:

In file included from array_real.cpp:28:
array_tlp.hpp: In instantiation of ‘void ArrayOperator() [with K = double; Z = l
ong int]’:
array_real.cpp:44:32:   required from here
array_tlp.hpp:1703:27: internal compiler error: in inc_refcount_use, at cp/pt.c:
8955
0x63784e inc_refcount_use
        ../../trunk/gcc/cp/pt.c:8955
0x63784e set_refcount_ptr<tinst_level>
        ../../trunk/gcc/cp/pt.c:8994
0x998992 push_tinst_level_loc
        ../../trunk/gcc/cp/pt.c:10152

The new bug seems to exist between revision 259439 and 259515.

I will have my usual go at reducing the code.
Comment 1 Richard Biener 2018-04-20 09:16:42 UTC
just fixed

*** This bug has been marked as a duplicate of bug 85462 ***