This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/63889] New: Ice with redundant static in class scope constexpr variable template.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63889

            Bug ID: 63889
           Summary: Ice with redundant static in class scope constexpr
                    variable template.
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: emsr at gcc dot gnu.org

Created attachment 33984
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33984&action=edit
Class snippet demonstrating the ICE.

This little test ices instead of issuing a warning (I'm not even sure it should
error) if a constexpr variable template member is declared static.

>From N3651 "A variable template at class scope is a static data member
template."

So the 'static', is at worst, redundant.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]