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

            Bug ID: 101710
           Summary: Sometimes constexpr cannot be used as constexpr
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: steve_green at qq dot com
  Target Milestone: ---

Created attachment 51231
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51231&action=edit
.ii file & .s file & output

I want to make a minimal reproduction of this ICE, but it seems I can't
So allow me to post a link to the project, sorry


You can try to compile this file
https://github.com/ELC-lang/ELC/blob/master/parts/header_file/test/forICE.cpp

In MSVC, the compilation of this file will stop due to some ICE, but it is
different from ICEs that GCC have 
The problem with GCC is that all "error: expected primary-expression before ‘X’
token" can be compiled in MSVC

Reply via email to