[llvm-bugs] [Bug 30500] New: ICE: when Clang build case with -std=c++14 occurred ICE, but pass -std=c++11 on PPC
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 22 20:15:42 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30500
Bug ID: 30500
Summary: ICE: when Clang build case with -std=c++14 occurred
ICE, but pass -std=c++11 on PPC
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: unassignedclangbugs at nondot.org
Reporter: bluechristlove at 163.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Test case like this:
[code]
double d154 = .0'e+1_liters;
[/code]
~/wk.dev$ clang++ --version
clang version 4.0.0 (trunk)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
~/wk.dev$ clang++ -std=c++11 x.C
x.C:1:17: warning: missing terminating ' character [-Winvalid-pp-token]
double d154 = .0'e+1_liters;
^
x.C:1:17: error: expected ';' after top level declarator
double d154 = .0'e+1_liters;
^
;
1 warning and 1 error generated.
But when we use -std=c++14.
~/wk.dev$ clang++ -std=c++14 x.C
x.C:1:17: error: digit separator cannot appear at end of digit sequence
double d154 = .0'e+1_liters;
^
#0 0x0000000011813054 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/gsa/tlbgsa-p3/11/xlrtcbld/jenkins/clang.main_trunk.runnable/rhel7_leppc/daily/160922_2104/bin/clang-4.0+0x11813054)
#1 0x0000000011813510 PrintStackTraceSignalHandler(void*)
(/gsa/tlbgsa-p3/11/xlrtcbld/jenkins/clang.main_trunk.runnable/rhel7_leppc/daily/160922_2104/bin/clang-4.0+0x11813510)
#2 0x0000000011810cec llvm::sys::RunSignalHandlers()
(/gsa/tlbgsa-p3/11/xlrtcbld/jenkins/clang.main_trunk.runnable/rhel7_leppc/daily/160922_2104/bin/clang-4.0+0x11810cec)
#3 0x0000000011810eec SignalHandler(int)
(/gsa/tlbgsa-p3/11/xlrtcbld/jenkins/clang.main_trunk.runnable/rhel7_leppc/daily/160922_2104/bin/clang-4.0+0x11810eec)
#4 0x00003fff869c0478 0x478 clang::expandUCNs(llvm::SmallVectorImpl<char>&,
llvm::StringRef)
#5 0x00003fff869c0478
...
1. x.C:1:15: current parser token '.0'e'
clang-4.0: error: unable to execute command: Segmentation fault
clang-4.0: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 4.0.0 (trunk)
Target: powerpc64le-unknown-linux-gnu
Thread model: posix
InstalledDir:
/gsa/tlbgsa/projects/x/xlcmpbld/run/clang/main_trunk/ubuntu14_leppc/daily/latest/bin
clang-4.0: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-4.0: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-4.0: note: diagnostic msg: /tmp/x-2ea0b5.cpp
clang-4.0: note: diagnostic msg: /tmp/x-2ea0b5.sh
clang-4.0: note: diagnostic msg:
********************
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160923/80e7082e/attachment.html>
More information about the llvm-bugs
mailing list