[Bug c++/58969] bogus error: the value of 'kName' is not usable in a constant expression

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 22 08:57:00 GMT 2018


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |7.2

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This was fixed by r249079 on trunk and r249325 for 7.2

    Fix array decay handling in constant expressions.

    * parser.c (cp_parser_constant_expression): Check
    potential_rvalue_constant_expression after decay_conversion.
    * pt.c (convert_nontype_argument): Don't require linkage in C++17.


More information about the Gcc-bugs mailing list