[Bug c++/50976] New: [C++0x] literal operator with unsigned long long parameter not accepted

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 3 08:13:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50976

             Bug #: 50976
           Summary: [C++0x] literal operator with unsigned long long
                    parameter not accepted
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com
                CC: 3dw4rd@verizon.net


gcc 4.7.0 20111029 (experimental) in C++0x mode rejects the following code:

//---
int operator "" _abc(unsigned long long int);
//---

with the message:

"error: 'int operator"" _abc(long long unsigned int)' has invalid argument
list"

but according to 13.5.8 p3 this should be a valid parameter-declaration-clause
and the code should be accepted.



More information about the Gcc-bugs mailing list