[Bug c++/83777] Invalid dependent initialization of a static data member.

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 11 08:35:00 GMT 2018


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2018-01-11
            Version|unknown                     |7.2.1
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Are you sure?  It looks like C<void *>::type doesn't instantiate C<void *>
because it isn't dependent?

clang accepts the testcase without error as well.


More information about the Gcc-bugs mailing list