projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
re PR c++/29291 (ICE on invalid use of new)
[gcc.git]
/
gcc
/
cp
/
init.c
diff --git
a/gcc/cp/init.c
b/gcc/cp/init.c
index 8faa03d393ec9ab7e9f9845c16c7e92e23eabb1d..0c85c0fe8fddfd1efdc2663a45353d7b6306711c 100644
(file)
--- a/
gcc/cp/init.c
+++ b/
gcc/cp/init.c
@@
-2075,7
+2075,8
@@
build_new (tree placement, tree type, tree nelts, tree init,
tree orig_nelts;
tree orig_init;
- if (placement == error_mark_node || type == error_mark_node)
+ if (placement == error_mark_node || type == error_mark_node
+ || init == error_mark_node)
return error_mark_node;
orig_placement = placement;