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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |7.1.0
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-11-02
            Summary|injected-class-name and     |[10/11/12/13 Regression]
                   |constructors diagnostic     |injected-class-name and
                   |                            |constructors diagnostic
   Target Milestone|---                         |10.5
      Known to fail|                            |8.1.0
           Keywords|                            |needs-bisection
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 7 produces:
<source>: In function 'void g()':
<source>:6:3: error: 'X::X' names the constructor, not the type
   X::X x;
   ^
<source>:6:8: error: expected ';' before 'x'
   X::X x;
        ^
<source>:6:9: error: statement cannot resolve address of overloaded function
   X::X x;
         ^

While GCC 8 produces the __ct diagnostic. At least that part is a regression.

Reply via email to