Commit e94384db by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/34918 (Broken diagnostic: 'vector_cst' not supported by dump_expr)

	PR c++/34918
	* error.c (dump_expr): Handle VECTOR_CST.

	* g++.dg/other/error23.C: New test.

From-SVN: r131727
parent 42a89d2d
2008-01-22 Jakub Jelinek <jakub@redhat.com>
PR c++/34918
* error.c (dump_expr): Handle VECTOR_CST.
2008-01-21 Jason Merrill <jason@redhat.com> 2008-01-21 Jason Merrill <jason@redhat.com>
PR c++/33959 PR c++/33959
......
/* Call-backs for C++ error reporting. /* Call-backs for C++ error reporting.
This code is non-reentrant. This code is non-reentrant.
Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002,
2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This file is part of GCC. This file is part of GCC.
GCC is free software; you can redistribute it and/or modify GCC is free software; you can redistribute it and/or modify
...@@ -2079,6 +2079,7 @@ dump_expr (tree t, int flags) ...@@ -2079,6 +2079,7 @@ dump_expr (tree t, int flags)
case VEC_DELETE_EXPR: case VEC_DELETE_EXPR:
case MODOP_EXPR: case MODOP_EXPR:
case ABS_EXPR: case ABS_EXPR:
case VECTOR_CST:
pp_expression (cxx_pp, t); pp_expression (cxx_pp, t);
break; break;
......
2008-01-22 Jakub Jelinek <jakub@redhat.com> 2008-01-22 Jakub Jelinek <jakub@redhat.com>
PR c++/34918
* g++.dg/other/error23.C: New test.
PR c++/34917 PR c++/34917
* g++.dg/ext/vector12.C: New test. * g++.dg/ext/vector12.C: New test.
// PR c++/34918
// { dg-do compile }
int v __attribute ((vector_size (8)));
bool b = !(v - v); // { dg-error "could not convert .\\(int __vector__\\)\\{0, 0\\}. to .bool.|in argument to unary" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment