xunzhang / gflags

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

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

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 --std=c++11

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 marshall...@gmail.com on 14 Aug 2012 at 5:44

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting this issue and providing a patch for it. This has been 
reported earlier and was fixed on May 29th in the trunk of the project.

Original comment by andreas....@gmail.com on 15 Aug 2012 at 7:38