https://bugs.llvm.org/show_bug.cgi?id=46072
Bug ID: 46072
Summary: access to scope enum through variable not possible
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: tobias.l...@steag.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
The following code does not compile on trunk (using godbolt.org)
When "enum class test" is replaced by "enum test" it works fine!
///////////////////////////////////////////////
class aa{
public:
enum class test{
d,f,g
};
};
int main(){
aa aa_;
aa::test test_ = aa_.test::f;
}
//////////////////////////////////////////////////////
<source>:14:32: error: 'aa::test::f' is not a member of class 'aa'
aa::test test_ = aa_.test::f;
~~~~~~^
1 error generated.
Compiler returned: 1
--
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