This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50917] [4.7 Regression] Mozilla build fails because of C++11 user-defined literals


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â


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]