<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63704>63704</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clang crash in PCH/late-parsed-instantiations.cpp
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang:frontend,
            crash,
            platform:aix
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          spavloff
      </td>
    </tr>
</table>

<pre>
    After [2e9037](https://reviews.llvm.org/rG2e903709de003dc6ae980197f4a0850a158dd9b8) clang starts crashing on the test `PCH/late-parsed-instantiations.cpp` on [clang-ppc64-aix buildbot](https://lab.llvm.org/buildbot/#/builders/214/builds/8309/steps/6/logs/FAIL__Clang__late-parsed-instantiations_cpp):
```
******************** TEST 'Clang :: PCH/late-parsed-instantiations.cpp' FAILED ********************
Script:
--
: 'RUN: at line 1'; /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -emit-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -o /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch -verify
: 'RUN: at line 2'; /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -include-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -verify
: 'RUN: at line 4'; /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -emit-pch -fpch-instantiate-templates /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -o /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch -verify
: 'RUN: at line 5'; /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -include-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -verify
--
Exit Code: 134
Command Output (stderr):
--
+ : 'RUN: at line 1'
+ /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -emit-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -o /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch -verify
+ : 'RUN: at line 2'
+ /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -include-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -verify
+ : 'RUN: at line 4'
+ /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -emit-pch -fpch-instantiate-templates /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -o /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch -verify
+ : 'RUN: at line 5'
+ /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -include-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -verify
Assertion failed: *FpPragmaCurrentValue == SemaObj->FpPragmaStack.DefaultValue && "Expected a default pragma float_control value", file /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/lib/Serialization/ASTReader.cpp, line 8150, void clang::ASTReader::UpdateSema()()
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -include-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -verify
1.      <eof> parser at end of file
/scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.script: line 4: 58065322 IOT/Abort trap          (core dumped) /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/bin/clang -cc1 -internal-isystem /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/lib/clang/17/include -nostdsysteminc -fdelayed-template-parsing -std=c++14 -include-pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/build/tools/clang/test/PCH/Output/late-parsed-instantiations.cpp.tmp.pch /scratch/powerllvm/powerllvm_env/aix-ppc64/clang-ppc64-aix/llvm-project/clang/test/PCH/late-parsed-instantiations.cpp -verify
--
********************
```
The crash is observed on single platform only.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWV1v27gS_TX0y0AGRVq29OAHx7buLVDcBk16XwNKHNlsKVEgKTfZX7-gFLnZ7qYN2hjIAgqEWPySDmcOD0cc4Zw6NIhrklyRZDcTnT8au3atOGlTVbPCyIf1pvJogSRXDDPKVyTZEZYevW8d4RvCcsJyiyeFX91c61M9N_YQqv4zdKeZREq5LJcCs5T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