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
This commit is contained in:
parent
42a89d2d54
commit
e94384dbd6
4 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
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>
|
||||
|
||||
PR c++/33959
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* Call-backs for C++ error reporting.
|
||||
This code is non-reentrant.
|
||||
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.
|
||||
|
||||
GCC is free software; you can redistribute it and/or modify
|
||||
|
@ -2079,6 +2079,7 @@ dump_expr (tree t, int flags)
|
|||
case VEC_DELETE_EXPR:
|
||||
case MODOP_EXPR:
|
||||
case ABS_EXPR:
|
||||
case VECTOR_CST:
|
||||
pp_expression (cxx_pp, t);
|
||||
break;
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
2008-01-22 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/34918
|
||||
* g++.dg/other/error23.C: New test.
|
||||
|
||||
PR c++/34917
|
||||
* g++.dg/ext/vector12.C: New test.
|
||||
|
||||
|
|
5
gcc/testsuite/g++.dg/other/error23.C
Normal file
5
gcc/testsuite/g++.dg/other/error23.C
Normal file
|
@ -0,0 +1,5 @@
|
|||
// 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" }
|
Loading…
Add table
Reference in a new issue