This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77572] wrong value for extended ASCII characters in diagnostics
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Aug 2017 16:49:46 +0000
- Subject: [Bug c++/77572] wrong value for extended ASCII characters in diagnostics
- Auto-submitted: auto-generated
- References: <bug-77572-4@http.gcc.gnu.org/bugzilla/>
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)