This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81575] ICE on C++ code: in cp_build_addr_expr_1, at cp/typeck.c:5793


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-07-27
            Version|unknown                     |8.0
     Ever confirmed|0                           |1
      Known to fail|                            |7.1.1, 8.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  clang++ rejects it with

t.C:1:16: error: default initialization of an object of const type 'const class
      (anonymous class at t.C:1:1) [1]'
class {} const a[1];
               ^
1 error generated.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]