Bug resolved.
The problem is that the global template function print_class_name is declared
to return std::string
but does not return anything.
THE real problem is that g++ does not issue even a warning when compiling the
above
code via "g++ -o test main.cc". To get a warning one must call "g++ -Wall -o
test main.cc".
It seems to me that I have reported this bug too soon, for which I
apologise (it will not happen again).
Thanks
** Changed in: gcc-4.1 (Ubuntu)
Status: New => Invalid
--
segmentation fault in std::string destructor
https://bugs.launchpad.net/bugs/185918
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs