public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60760] New: arithmetic on null pointers should not be allowed in constant expressions
@ 2014-04-04 14:53 redi at gcc dot gnu.org
  2014-04-04 17:43 ` [Bug c++/60760] " daniel.kruegler at googlemail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2014-04-04 14:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60760
           Summary: arithmetic on null pointers should not be allowed in
                    constant expressions
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org

G++ should not compile this:

constexpr int* ptr = nullptr;
constexpr int* ptr2 = ptr + 1;


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

end of thread, other threads:[~2014-12-14 16:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-04 14:53 [Bug c++/60760] New: arithmetic on null pointers should not be allowed in constant expressions redi at gcc dot gnu.org
2014-04-04 17:43 ` [Bug c++/60760] " daniel.kruegler at googlemail dot com
2014-04-04 18:08 ` daniel.kruegler at googlemail dot com
2014-12-14 16:27 ` ville.voutilainen at gmail 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).