[Bug c++/68586] [6 Regression] Enum template parameter wrongly rejected
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 15 17:45:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68586
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another testcase (explicit underlying type):
enum E : int { x = 1, y = x << 1 };
template<E> struct A {};
A<x> a;
It appears this could be solved by *not* inserting const_decls of enums that
haven't been finished into the cv_cache. I don't know how to do that though.
More information about the Gcc-bugs
mailing list