[Bug c++/86183] Scoped enumeration instantiated even if not required
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86183 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #5 from Andrew Pinski --- Dup of bug 49224. *** This bug has been marked as a duplicate of bug 49224 ***
[Bug c++/86183] Scoped enumeration instantiated even if not required
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86183 --- Comment #4 from Jonathan Wakely --- *** Bug 86384 has been marked as a duplicate of this bug. ***
[Bug c++/86183] Scoped enumeration instantiated even if not required
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86183 --- Comment #3 from Jonathan Wakely --- The code is valid. It should not give an error, because the definition of the scoped enumeration type should be instantiated by the implicit instantiation of the class template. I changed the status to NEW and set the keyword rejects-valid, I wouldn't have done that if it was invalid.
[Bug c++/86183] Scoped enumeration instantiated even if not required
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86183 --- Comment #2 from zhonghao at pku dot org.cn --- (In reply to Jonathan Wakely from comment #1) > The definition of a member scoped enumaration type should not be > instantiated by the implicit instantiation of the class template. Is the code illegal? The latest clang++ still accepts the code. If the code is illegal, I will report the problem to clang.
[Bug c++/86183] Scoped enumeration instantiated even if not required
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86183 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2018-06-18 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- The definition of a member scoped enumaration type should not be instantiated by the implicit instantiation of the class template.