ICE from template local overload resolution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
Fix Released
|
Medium
|
|||
gcc-7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is reported upstream as https:/
Compiling the attached source file with no flags ("g++-7 EngineReportWri
EngineReportWri
EngineReportWri
inline T WrapToCycle(T degrees)
0x86f4b4a crash_signal
0x84d576b useless_
0x83b4b8f types_compatible_p
0x83b4b8f gimple_
0x83b4b8f gimple_
0x83b6304 symbol_
0x83b6529 cgraph_
0x83bbb06 execute
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:/
The bug appears to be triggered by the combination of a template plus local function declarations plus overload resolution. If I move the local scope function declarations to global scope, or if I change the function declarations so that overload resolution isn't necessary, then the bug goes away.
This is on Ubuntu 14.04 x86, running GCC 7.1.0 from the Ubuntu Toolchain Test PPA (https:/
Previous versions of GCC (including GCC 6.3.0 from the Ubuntu Toolchain Test PPA) are unaffected.
GCC 7.1 on godbolt.org is also reporting errors: https:/
Changed in gcc-7 (Ubuntu): | |
status: | New → Confirmed |
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in gcc: | |
status: | Confirmed → In Progress |
Changed in gcc: | |
status: | In Progress → Fix Released |
fixed in artful