[llvm-bugs] [Bug 46072] New: access to scope enum through variable not possible
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 26 02:37:23 PDT 2020
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: unassignedclangbugs at nondot.org
Reporter: tobias.loew at steag.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200526/1c519a5e/attachment.html>
More information about the llvm-bugs
mailing list