https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686
Paolo Carlini changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
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.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59686
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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