[Bug c++/49604] forward-declared enum's elements in class scope gets default access (class vs struct)
myriachan at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 16 07:24:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49604
Melissa <myriachan at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |myriachan at gmail dot com
--- Comment #3 from Melissa <myriachan at gmail dot com> ---
Happens for me on 5.0.0 build 2014/10/15 (via wandbox) through 4.6.x - whenever
typed enums were added.
Simpler test case than the original:
class MyTable {
public:
enum Constants : unsigned;
};
enum MyTable::Constants : unsigned {
LENGTH = 12,
};
int main()
{
return MyTable::LENGTH;
}
More information about the Gcc-bugs
mailing list