<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - ICE: when Clang build case with -std=c++14 occurred ICE, but pass -std=c++11 on PPC"
   href="https://llvm.org/bugs/show_bug.cgi?id=30500">30500</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ICE: when Clang build case with -std=c++14 occurred ICE, but pass -std=c++11 on PPC
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++14
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bluechristlove@163.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> 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:

********************</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>