https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100825
Nickolay Merkin changed:
What|Removed |Added
CC||nickolay.merkin at gmail dot
com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67151
Nickolay Merkin nickolay.merkin at gmail dot com changed:
What|Removed |Added
Keywords||ice
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67151
--- Comment #3 from Nickolay Merkin nickolay.merkin at gmail dot com ---
(In reply to Markus Trippelsdorf from comment #2)
Already fixed in gcc-5 branch and trunk.
Thank you!
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nickolay.merkin at gmail dot com
Target Milestone: ---
http://ideone.com/4t9nUW
C++14
Source file (just two lines!)
templateint N const auto ice = true ? 0 : ice(N0 ? N-1 : 0);
const auto crash = ice1;
Output
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58080
--- Comment #10 from Nickolay Merkin nickolay.merkin at gmail dot com ---
(In reply to Paolo Carlini from comment #9)
Fixed for 4.9.0.
Thank you!
Will it be fixed for 4.7.3, or this version is frozen?
: major
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: nickolay.merkin at gmail dot com
Created attachment 30609
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30609action=edit
preprocessed source code that leads to the ICE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58080
--- Comment #2 from Nickolay Merkin nickolay.merkin at gmail dot com ---
(In reply to Paolo Carlini from comment #1)
Note that strictly speaking arithmetic on a pointer to void would be even
invalid.
Yes of course, and the compiler has notified
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58080
--- Comment #4 from Nickolay Merkin nickolay.merkin at gmail dot com ---
(In reply to Paolo Carlini from comment #3)
I meant something else: I meant that on a different compiler, your code
could be hardly rejected, you should not use arithmetic