https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94888
Jason Merrill changed:
What|Removed |Added
CC||jason at gcc dot gnu.org
--- Comment #6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94888
--- Comment #5 from Jonathan Wakely ---
Further reduced:
struct FunctionBridger
{
template
FunctionBridger(T& func_)
{
T t(func_);
}
};
struct Function : FunctionBridger
{
template
Function( Ty&& func) : Function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94888
Jonathan Wakely changed:
What|Removed |Added
Status|WAITING |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94888
--- Comment #3 from zhangzhanli ---
So this is output from latest version of g++ ?
With Apple Clang, there is no such problem (recursive and segmentation fault).
MacOS Output:
jaly@Jalys-MBP gcccompared %
/Volumes/macos/Applications/Xcode.app
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94888
--- Comment #2 from Jonathan Wakely ---
AddressSanitizer:DEADLYSIGNAL
=
==198476==ERROR: AddressSanitizer: stack-overflow on address 0x7ffc0eba4ff8 (pc
0x7f4eab1169b4 bp 0x7f4eab20ef
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94888
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |WAITING
Last reconfirmed|