This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77572] wrong value for extended ASCII characters in diagnostics


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

Eric Gallager <egallager at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |egallager at gcc dot gnu.org

--- Comment #1 from Eric Gallager <egallager at gcc dot gnu.org> ---
The output I get doesn't have the nonsensical escape sequences:

$ /usr/local/bin/g++ -c -S -Wall 77572.cc
77572.cc:1:19: error: invalid conversion from ‘const char*’ to ‘int’
[-fpermissive]
 constexpr int i = "\x0_\x01_\x7f_\x80_\xff";
                   ^~~~~~~~~~~~~~~~~~~~~~~~~
77572.cc:1:19: error: conversion from pointer type ‘const char (*)[10]’ to
arithmetic type ‘int’ in a constant expression
$

So, FIXED? (You're usually better than me at narrowing down the revision when
the fix happened so I'll leave that to you)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]