MagentaTreehouse
MagentaTreehouse
Requesting to reopen this issue. The original repro now causes Clang to segfault. See https://compiler-explorer.com/z/shKs3Pvv1. Stack dump (nondeterministic on Compiler Explorer) ```console 0. Program arguments: /opt/compiler-explorer/clang-assertions-trunk-20250211/bin/clang-21 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj...
See also: https://github.com/llvm/llvm-project/issues/34749 https://github.com/llvm/llvm-project/issues/45690
Simpler test case: ```c++ template struct helper { template static constexpr auto i = 0; }; constexpr auto i = sizeof helper::i; ``` Assertion: ```console clang++: /root/llvm-project/clang/lib/AST/ASTContext.cpp:2415: clang::TypeInfo clang::ASTContext::getTypeInfoImpl(const clang::Type*)...
Should this issue be closed as completed by [#78595](https://github.com/llvm/llvm-project/pull/78595)?
@shafik Looks like it's no longer crashing.
Possibly related issue: #76674
The [MSVC STL implementation](https://github.com/microsoft/STL/blob/main/stl/inc/limits) has `[[nodiscard]]`.
Reduced: ```c++ #include struct assert_fn { inline constexpr void operator()( std::source_location = std::source_location::current()) const {} }; inline constexpr auto assert_ = ::assert_fn{}; #define FLUX_DEBUG_ASSERT (::assert_()); constexpr auto inc(auto const&) {...
I'm almost certain that I found an even earlier report of the same issue: #63271
This might be an MSVC STL issue. Reproduced on clang 18 (with MSVC STL) ``` clang version 18.1.2 (https://github.com/llvm/llvm-project.git 26a1d6601d727a96f4301d0d8647b5a42760ae0c) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files\LLVM\bin ``` and...