[Bug c++/59686] Non-constexpr pointers accepted in constant expressions

2015-03-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686 Paolo Carlini changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/59686] Non-constexpr pointers accepted in constant expressions

2015-03-19 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686 --- Comment #3 from paolo at gcc dot gnu.org --- Author: paolo Date: Thu Mar 19 08:57:01 2015 New Revision: 221510 URL: https://gcc.gnu.org/viewcvs?rev=221510&root=gcc&view=rev Log: 2015-03-19 Paolo Carlini PR c++/59686 * g++.dg/cpp0

[Bug c++/59686] Non-constexpr pointers accepted in constant expressions

2015-03-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686 --- Comment #2 from Paolo Carlini --- Mainline properly rejects this. I'm adding the testcase and closing the bug.

[Bug c++/59686] Non-constexpr pointers accepted in constant expressions

2014-05-07 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/59686] Non-constexpr pointers accepted in constant expressions

2014-01-05 Thread ville.voutilainen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686 --- Comment #1 from Ville Voutilainen --- (In reply to Ville Voutilainen from comment #0) > int main > { > static const int x = 5; > const int * const y = &x; > static_assert(y, ""); > } > > clang rejects this, gcc accepts. well, typ