https://bugs.llvm.org/show_bug.cgi?id=47964
Bug ID: 47964
Summary: Struct declared in a field declaration in another
struct.
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: anders.granlun...@gmail.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Consider the following c++ program:
int main()
{
struct A
{
struct B *b;
};
using U = A::B;
}
Compiling it with "-std=c++20 -pedantic-errors" gives the following error
message:
<source>:8:18: error: no type named 'B' in 'A'
using U = A::B;
~~~^
This is strange. Doesn't B belong to the class scope of A ? If not, to what
other scope does it blong?
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs