aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-07-18 19:44:48 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-07-18 19:44:48 +0200
commitf2111a364039343a3314736d376990dfa549e650 (patch)
tree7be3bd72b926527173c5c6ac314506e670a63112 /gcc/cp
parent0b96552628efa86e6e41a279bf7abfd7018d8a93 (diff)
downloadgcc-f2111a364039343a3314736d376990dfa549e650.zip
gcc-f2111a364039343a3314736d376990dfa549e650.tar.gz
gcc-f2111a364039343a3314736d376990dfa549e650.tar.bz2
re PR c++/71871 (ICE on mixing templates and vector extensions ternary operator)
PR c++/71871 * typeck.c (build_x_conditional_expr): Revert the 2012-10-25 change. * g++.dg/ext/vector31.C: New test. From-SVN: r238439
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/typeck.c3
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2dfc808..888d4aa 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-18 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/71871
+ * typeck.c (build_x_conditional_expr): Revert the 2012-10-25 change.
+
2016-07-15 Jason Merrill <jason@redhat.com>
PR c++/71495
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 2f2beea..f9e45ee 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -6288,8 +6288,7 @@ build_x_conditional_expr (location_t loc, tree ifexp, tree op1, tree op2,
}
expr = build_conditional_expr (loc, ifexp, op1, op2, complain);
- if (processing_template_decl && expr != error_mark_node
- && TREE_CODE (expr) != VEC_COND_EXPR)
+ if (processing_template_decl && expr != error_mark_node)
{
tree min = build_min_non_dep (COND_EXPR, expr,
orig_ifexp, orig_op1, orig_op2);