public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50059] New: [C++0x] Broken error message with __builtin_remquo & constexpr
@ 2011-08-12 14:49 paolo.carlini at oracle dot com
  2011-08-12 14:51 ` [Bug c++/50059] " paolo.carlini at oracle dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-08-12 14:49 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-13 21:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-12 14:49 [Bug c++/50059] New: [C++0x] Broken error message with __builtin_remquo & constexpr paolo.carlini at oracle dot com
2011-08-12 14:51 ` [Bug c++/50059] " paolo.carlini at oracle dot com
2011-08-12 15:11 ` paolo.carlini at oracle dot com
2011-08-12 16:26 ` paolo.carlini at oracle dot com
2011-08-12 18:08 ` paolo.carlini at oracle dot com
2011-08-13 20:14 ` jason at gcc dot gnu.org
2011-08-13 20:50 ` jason at gcc dot gnu.org
2011-08-13 21:36 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).