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

            Bug ID: 93143
           Summary: Multiple calls to static constexpr member function
                    gives wrong code
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: larsbj at gullik dot net
  Target Milestone: ---

Created attachment 47586
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47586&action=edit
Source showing problem.

This is with g++ (GCC) 10.0.0 20200102 (experimental), on x86_64.

Compile the attached source with:

g++ -std=gnu++17 v8.cpp

When running it aborts, but should not.
(it is the second abort that triggers.)

If the single line in v6_type() is commented out, the example program stops
aborting.

Seems to be some interaction compile time/run time wrt constexpr.

Reply via email to