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

            Bug ID: 121042
           Summary: testsuite/g++.dg/opt/musttail4.C fails for sjlj
                    targets
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amylaar at gcc dot gnu.org
  Target Milestone: ---

musttail4.C still fails due to getting a different diagnostic than expected:
../../gcc/gcc/testsuite/g++.dg/opt/musttail4.C: In function 'int bar()':
../../gcc/gcc/testsuite/g++.dg/opt/musttail4.C:13:32: error: cannot tail-call:
caller uses sjlj exceptions
   13 |   [[gnu::musttail]] return foo ();      // { dg-error "cannot
tail-call: call may throw exception that does not propagate" }

I think we should just accept either diagnostic.

Reply via email to