[Bug c++/91155] __PRETTY_FUNCTION__ gets truncated when char template parameter is '\0'

d.frey at gmx dot de gcc-bugzilla@gcc.gnu.org
Sat Jul 13 10:22:00 GMT 2019


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

--- Comment #1 from Daniel Frey <d.frey at gmx dot de> ---
Additionally, other cases are broken as well. Using

dummy< '\'' >

The output with GCC 9.1 is

dummy< ''' >

while it was correct with GCC 8.3:

dummy< '\'' >

This probably means that characters are not escaped anymore, which leads to the
truncation in case of \0.


More information about the Gcc-bugs mailing list