[Bug c++/43253] New: g++ chokes on pseudo destructor call
miklcct at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 4 09:46:00 GMT 2010
michael@ubuntu:~/src/misc$ cat test.cpp
#include <cstdlib>
int main() {
int *x = new int();
x->~int();
exit(0);
}
michael@ubuntu:~/src/misc$ g++ test.cpp -o test
test.cpp: In function Âint main()Â:
test.cpp:4: error: expected class-name before ÂintÂ
test.cpp:4: error: expected Â;Â before ÂintÂ
--
Summary: g++ chokes on pseudo destructor call
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: miklcct at gmail dot com
GCC host triplet: x86_64-linux-gnu
GCC target triplet: x86_64-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43253
More information about the Gcc-bugs
mailing list