This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50917] [4.7 Regression] Mozilla build fails because of C++11 user-defined literals
- From: "markus at trippelsdorf dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Oct 2011 09:28:51 +0000
- Subject: [Bug c++/50917] [4.7 Regression] Mozilla build fails because of C++11 user-defined literals
- Auto-submitted: auto-generated
- References: <bug-50917-4@http.gcc.gnu.org/bugzilla/>
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â