https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80289
Bug ID: 80289
Summary: Crash when the same constexpr variable is defined
several times
Product: gcc
Version: 6.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: damien at iwi dot me
Target Milestone: ---
>From g++ 6.2 to g++ 7, defining several times the same constexpr variable makes
gcc crash:
constexpr char text1[] = "hello world";
constexpr char text1[] = "hello world";
int main() {
return 0;
}
With the output:
/tmp/constexpr-test.cpp:3: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/ccEJApHL.out file, please attach this to
your bugreport
It does not seem platform specific, but just in case, please find attached the
temporary file.