http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56176



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



           What    |Removed                     |Added

----------------------------------------------------------------------------

           Keywords|                            |ice-on-invalid-code

             Status|UNCONFIRMED                 |NEW

   Last reconfirmed|                            |2013-02-01

      Known to work|                            |4.8.0

            Summary|internal compiler error     |ICE with call to

                   |with call to default        |synthesized default

                   |constructor of inner struct |constructor of inner struct

                   |having a std::function      |with NSDMI

                   |member attribute            |

                   |initialization              |

     Ever Confirmed|0                           |1

      Known to fail|                            |4.7.2



--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-01 
16:11:33 UTC ---

Trunk rejects it as invalid:



t.cc: In constructor 'constexpr B::A::A()':

t.cc:4:9: error: constructor required before non-static data member for

'B::A::a' has been parsed

         {

         ^

t.cc: At global scope:

t.cc:7:15: note: synthesized method 'constexpr B::A::A()' first required here

     B(A a = A()){}

               ^

Reply via email to