[Bug c++/65642] [5 Regression] [C++11] GCC rejects valid constant expression

2015-04-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65642 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Thu Apr 2 16:51:27 2015 New Revision: 221843 URL: https://gcc.gnu.org/viewcvs?rev=221843&root=gcc&view=rev Log: PR c++/65642 * constexpr.c (cxx_eval_pointer_plus_expression):

[Bug c++/65642] [5 Regression] [C++11] GCC rejects valid constant expression

2015-04-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65642 --- Comment #4 from Marek Polacek --- (In reply to Marek Polacek from comment #3) > Created attachment 35214 [details] > pr65642.patch > > Untested patch for example 1 and 3. 1 and 2. 3 is different.

[Bug c++/65642] [5 Regression] [C++11] GCC rejects valid constant expression

2015-04-02 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65642 --- Comment #3 from Marek Polacek --- Created attachment 35214 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35214&action=edit pr65642.patch Untested patch for example 1 and 3.