https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117139

--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Note that for GCC 14 without checking (see https://godbolt.org/z/Tb53j8WWz),
the user reports an odd "confused by earlier errors, bailing out" note:

"""
gcc-14 (14.2.1_p20240921 p1) also is a bit weird about the same:
gcc -O2 -pipe -Wall --std=gnu23 -o test test.c
test.c:1:25: error: ‘constexpr’ integer initializer is not an integer constant
expression
    1 | constexpr int myconst = 2 * 2.5;
      |                         ^
test.c:1: confused by earlier errors, bailing out

The first message is actually correct - the line is not valid, and was used
during playing with the limits of constexpr.
"""

Reply via email to