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++/66001] New: [5.1/6 regression] ICE when NSDMI in a literal class uses a destructor


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

            Bug ID: 66001
           Summary: [5.1/6 regression] ICE when NSDMI in a literal class
                    uses a destructor
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: potswa at mac dot com
  Target Milestone: ---

Works in 4.9.2, broken in 5.1. Not sure about 5.

struct x {
    struct dt { ~ dt() {} }
        const & m = {};
} cx;

in constexpr expansion of âcx.x::x()â
internal compiler error: unexpected expression â<statement>â of kind
try_finally

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