https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124120
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Could you please upload preprocessed source?
Does it ICE if you comment out the error in the test, i.e.
consteval void bar() {
- template for (constexpr int I : foo()) {
+// template for (constexpr int I : foo()) {
// doesn't work
- } // { dg-error "'foo\\\(\\\)' is not a constant expression
because it refers to a result of 'operator new'" }
+// } // { dg-error "'foo\\\(\\\)' is not a constant
expression because it refers to a result of 'operator new'" }
}
? If not, then it would be ice-on-invalid or error-recovery. Still, that line
in the mangler isn't called at all when testing this on Linux.