evilsong / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Compile failures under gcc-4.7 with --std=c++11 #462

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to compile with gcc-4.7.

What is the expected output? What do you see instead?
Should compile but does not due to new operator"" added under C++11 and 
supported by default on gcc-4.7.

This is documented http://gcc.gnu.org/gcc-4.7/porting_to.html under "User 
defined literals and whitespace"

More discussion here: 
https://groups.google.com/forum/#!topic/comp.std.c++/9nD4Mb8pN1Q%5B1-25%5D

See attached patch that resolves this compile failure.

Original issue reported on code.google.com by marsh...@zentire.com on 14 Aug 2012 at 5:31

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by chapp...@gmail.com on 3 Nov 2012 at 4:50