-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Open
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"
Description
| Bugzilla Link | 43195 |
| Version | trunk |
| OS | Windows NT |
| Attachments | File containing the reproducible case |
| CC | @dwblaikie,@pogo59,@rnk |
Extended Description
When building the attached file with clang-cl using the flags /Od /Zi and running the output with the Visual Studio 15 2017 debugger, evaluating this at line 8 (before initialization) gives the result "Variable is optimized away and not available.". This behaviour is different to both clang+lldb and pure MSVC, both of which give this the address of the uninitialized object. This occurs whether the MSVC linker or lld is used.
clang version 10.0.0
Target: x86_64-pc-windows-msvc
Thread model: posix
Metadata
Metadata
Assignees
Labels
bugzillaIssues migrated from bugzillaIssues migrated from bugzillac++clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"