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++/50059] New: [C++0x] Broken error message with __builtin_remquo & constexpr


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

             Bug #: 50059
           Summary: [C++0x] Broken error message with __builtin_remquo &
                    constexpr
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: paolo.carlini@oracle.com


Consider this:

int r = 0;
constexpr double d = __builtin_remquo(1, 1, &r);

The error message is:

a.cc:2:49: error: expression â(r <unknown operator> 1)â is not a
constant-expression


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