[Bug c++/50917] [4.7 Regression] Mozilla build fails because of C++11 user-defined literals
markus at trippelsdorf dot de
gcc-bugzilla@gcc.gnu.org
Sun Oct 30 09:29:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50917
Markus Trippelsdorf <markus at trippelsdorf dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |
--- Comment #1 from Markus Trippelsdorf <markus at trippelsdorf dot de> 2011-10-30 09:28:51 UTC ---
IOW:
% cat test.cpp
#include <cstdio>
#define MOZ_DLL_SUFFIX ".so"
int main () {
char lastSlash[4096];
snprintf(lastSlash, 4096 , "/" "libxul"MOZ_DLL_SUFFIX);
}
% g++ test.cpp -std=gnu++0x
test.cpp: In function ‘int main()’:
test.cpp:5:34: error: unable to find user-defined string literal operator
‘operator"" MOZ_DLL_SUFFIX’
More information about the Gcc-bugs
mailing list