[Bug c++/78022] constexpr int template rejected unless constructor is used before hand

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Oct 19 00:53:00 GMT 2016


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2016-10-19
            Summary|Strange C++ compilation     |constexpr int template
                   |error                       |rejected unless constructor
                   |                            |is used before hand
     Ever confirmed|0                           |1
      Known to fail|                            |5.3.0, 5.4.0, 7.0

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
struct X can be a function too.


More information about the Gcc-bugs mailing list