llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Assertion with pointers to anonymous member variables.

Open goussepi opened this issue 11 years ago • 2 comments

Bugzilla Link 25524
Version trunk
OS All
Attachments test case

Extended Description

Using latest clang on trunk: https://llvm.org/svn/llvm-project/cfe/trunk@253016

The attached test case causes clang to assert given the following options:

$> clang -cc1 -analyze "-analyzer-checker=core" "trim.cpp"

UNREACHABLE executed at <...>\llvm\tools\clang\lib\StaticAnalyzer\Core\ExprEngine.cpp:1954!

goussepi avatar Nov 13 '15 20:11 goussepi

I have tested that this happen with both Release and Debug builds on Windows but only in Debug builds on Linux. The issue seem also present in clang 3.6.

goussepi avatar Nov 16 '15 13:11 goussepi

assigned to @tkremenek

goussepi avatar Nov 13 '15 20:11 goussepi