[Bug c++/54648] constexpr function rejected as non const
leonid at volnitsky dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 26 13:16:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54648
--- Comment #2 from Leonid Volnitsky <leonid at volnitsky dot com> 2012-09-26 13:16:16 UTC ---
Found bad commit.
Quick recap: GCC says that expression sizeof(....)==1 is not constexpr.
Commit is about template aliases and they are used in expression.
Bad commit (as reported by git):
6423a93273627b3d1ff3a799d23baa7eae6e6cc9 is the first bad commit
commit 6423a93273627b3d1ff3a799d23baa7eae6e6cc9
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Tue Sep 18 03:47:35 2012 +0000
PR c++/54575
* pt.c (instantiate_alias_template): New.
(tsubst): Use it.
(push_access_scope): Allow TYPE_DECL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191412
138bc75d-0d04-0410-961f-82ee72b054a4
:040000 040000 51d12d90281f31fa13167d674af17c710145c900
0f9f175917aa843c713a0415f542801bc391f0e0 M gcc
More information about the Gcc-bugs
mailing list