This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45908] [C++0x] ICE involving decltype: in tree_low_cst, at tree.h:4114
- From: "ebotcazou at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 6 Oct 2010 14:35:46 +0000
- Subject: [Bug c++/45908] [C++0x] ICE involving decltype: in tree_low_cst, at tree.h:4114
- Auto-submitted: auto-generated
- References: <bug-45908-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45908
--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2010-10-06 14:35:33 UTC ---
Author: ebotcazou
Date: Wed Oct 6 14:35:25 2010
New Revision: 165031
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165031
Log:
PR c++/45908
* typeck.c (cp_build_addr_expr_1): Add check for incomplete types in
code folding offsetof-like computations.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr45908.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog