public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Attempt to fix g++.dg tests failures in gnu-versioned-namespace mode
@ 2023-09-20  5:08 François Dumont
  2023-09-20  7:22 ` Thomas Schwinge
  0 siblings, 1 reply; 3+ messages in thread
From: François Dumont @ 2023-09-20  5:08 UTC (permalink / raw)
  To: gcc

I've configured libstdc++ with --enable-symvers=gnu-versioned-namespace 
and run make check-c++.

A number of failures are like this one:

/home/fdumont/dev/gcc/git/gcc/testsuite/g++.dg/coroutines/coro-bad-alloc-00-bad-op-new.C: 
In function 'coro1 f()':
/home/fdumont/dev/gcc/git/gcc/testsuite/g++.dg/coroutines/coro-bad-alloc-00-bad-op-new.C:9:1: 
error: 'operator new' is provided by 
'std::__8::__n4861::__coroutine_traits_impl<coro1, void>::promise_type' 
{aka 'co
ro1::promise_type'} but is not usable with the function signature 'coro1 
f()'
compiler exited with status 1
FAIL: g++.dg/coroutines/coro-bad-alloc-00-bad-op-new.C  (test for 
errors, line 9)
FAIL: g++.dg/coroutines/coro-bad-alloc-00-bad-op-new.C (test for excess 
errors)
Excess errors:
/home/fdumont/dev/gcc/git/gcc/testsuite/g++.dg/coroutines/coro-bad-alloc-00-bad-op-new.C:9:1: 
error: 'operator new' is provided by 
'std::__n4861::__coroutine_traits_impl<coro1, void>::promise_type' {aka 
'coro1::promise_type'} but is not usable with the function signature 
'coro1 f()'

The '__8' is messing with expected output.

So I've added:

     # Ignore optional version namespace from libstdc++.
     regsub -all "std::__8::" $text "std::" text

in testsuite/lib/prune.exp prune_gcc_output.

But it had no impact, same failures.

What am I missing ?

Thanks,

François



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-21  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-20  5:08 Attempt to fix g++.dg tests failures in gnu-versioned-namespace mode François Dumont
2023-09-20  7:22 ` Thomas Schwinge
2023-09-21  5:01   ` François Dumont

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).