diff mbox

[PR,C++/61038] - g++ -E is unusable with UDL strings

Message ID mvm4n0jpj5s.fsf@hawking.suse.de
State New
Headers show

Commit Message

Andreas Schwab May 21, 2014, 9:37 a.m. UTC
Ed Smith-Rowland <3dw4rd@verizon.net> writes:

> Index: ../gcc/testsuite/g++.dg/cpp0x/pr61038.C
> ===================================================================
> --- ../gcc/testsuite/g++.dg/cpp0x/pr61038.C	(revision 0)
> +++ ../gcc/testsuite/g++.dg/cpp0x/pr61038.C	(working copy)
> @@ -0,0 +1,23 @@
> +// PR c++/61038
> +// { dg-do compile { target c++11 } }
> +// { dg-options "-E" }
> +
> +void
> +operator "" _s(const char *, unsigned long)

../../gcc/gcc/testsuite/g++.dg/cpp0x/pr61038.C:8:43: error: ‘void operator""_s(const char*, long unsigned int)’ has invalid argument list

Andreas.

	* g++.dg/cpp0x/pr61038.C (operator "" _s): Use size_t.
diff mbox

Patch

Index: g++.dg/cpp0x/pr61038.C
===================================================================
--- g++.dg/cpp0x/pr61038.C	(revision 210686)
+++ g++.dg/cpp0x/pr61038.C	(working copy)
@@ -5,7 +5,7 @@ 
 #include <cstdlib>
 
 void
-operator "" _s(const char *, unsigned long)
+operator "" _s(const char *, size_t)
 { }
 
 void