New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Clang][DebugInfo] typedef in template class given wrong scope #91451
Comments
Unknown if it has the same root cause as #44229 |
@llvm/issue-subscribers-debuginfo Author: Orlando Cazalet-Hyams (OCHyams)
Clang trunk built at d4cf20c (19.0)
Godbolt version of example below https://godbolt.org/z/7esxK8dbY $ cat test.cpp
The DIE for $ clang -O0 -g test.cpp -o - | llvm-dwarfdump -
Looking at the IR produced by Clang: $ clang -O0 -g test.cpp -emit-llvm -S -o -
|
@llvm/issue-subscribers-clang-codegen Author: Orlando Cazalet-Hyams (OCHyams)
Clang trunk built at d4cf20c (19.0)
Godbolt version of example below https://godbolt.org/z/7esxK8dbY $ cat test.cpp
The DIE for $ clang -O0 -g test.cpp -o - | llvm-dwarfdump -
Looking at the IR produced by Clang: $ clang -O0 -g test.cpp -emit-llvm -S -o -
|
Clang trunk built at d4cf20c (19.0)
Godbolt version of example below https://godbolt.org/z/7esxK8dbY
$ cat test.cpp
The DIE for
outside
is scoped toDW_TAG_compile_unit (0x0000000b)
while the DIE forinside
is scoped to its enclosingDW_TAG_structure_type (0x00000033)
.outside
should be scoped to theDW_TAG_structure_type
DIE forY<int>
(0x00000070
).$ clang -O0 -g test.cpp -o - | llvm-dwarfdump -
Looking at the IR produced by Clang:
$ clang -O0 -g test.cpp -emit-llvm -S -o -
inside
has ascope
field pointing toX
.outside
has no scope field.The text was updated successfully, but these errors were encountered: