This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[C++] NEW_EXPR and PR c++/11406
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: gcc at gcc dot gnu dot org
- Cc: mark at codesourcery dot integrable-solutions dot net
- Date: 22 Jul 2003 00:36:24 +0200
- Subject: [C++] NEW_EXPR and PR c++/11406
- Organization: Integrable Solutions
I've been looking into PR c++/11406 which has mostly to do with
NEW_EXPR construction at parse-time. NEW_EXPR is probably one of the
few undocumented trees in doc/c-tree.texi.
Consider:
template <int> struct S{};
template <int N> S<sizeof(new double[N])> f () {} // #3
template S<4> f<2>();
for the new-expression at line #3, the parser seems to be building
NEW_EXPR (NULL,
TREE_LIST ( ARRAY_REF ( ... ),
NULL)
where the tree dumper expects
NEW_EXPR (NULL,
ARRAY_REF ( ... ),
NULL)
therefore the sorry+ICE.
Is the TREE_LIST to be expected? That seems a bit odd.
-- Gaby