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++/61057] New: [C++11] operator . considered part of User Defined Literal invocation.


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

            Bug ID: 61057
           Summary: [C++11] operator . considered part of User Defined
                    Literal invocation.
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: isupeene at ualberta dot ca

Created attachment 32730
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32730&action=edit
Contains udl_bug.cpp and udl_bug_workaround.cpp

When compiling with 'g++ -std=c++11 <filename>':

The attached file udl_bug.cpp reproduces the bug, producing the error: "error:
unable to find numeric literal operator âoperator"" _i.m_valueâ".

The attached file udl_bug_workaround.cpp compiles successfully and produces the
expected output.

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