mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-08 15:42:07 +08:00
re PR c++/35335 (Broken diagnostic: 'expr_stmt' not supported by dump_expr)
PR c++/35335 * error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR. * g++.dg/other/error31.C: New testcase. From-SVN: r143210
This commit is contained in:
parent
260fda3d0a
commit
aee5c3ed8c
@ -1,3 +1,8 @@
|
||||
2009-01-09 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/35335
|
||||
* error.c (dump_expr): Handle EXPR_STMT like BIND_EXPR.
|
||||
|
||||
2009-01-09 John F. Carr <jfc@mit.edu>
|
||||
|
||||
PR c++/37877
|
||||
|
@ -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, 2008 Free Software Foundation, Inc.
|
||||
2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
This file is part of GCC.
|
||||
|
||||
GCC is free software; you can redistribute it and/or modify
|
||||
@ -1977,6 +1977,7 @@ dump_expr (tree t, int flags)
|
||||
|
||||
case BIND_EXPR:
|
||||
case STMT_EXPR:
|
||||
case EXPR_STMT:
|
||||
case STATEMENT_LIST:
|
||||
/* We don't yet have a way of dumping statements in a
|
||||
human-readable format. */
|
||||
|
@ -1,5 +1,8 @@
|
||||
2009-01-09 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR c++/35335
|
||||
* g++.dg/other/error31.C: New testcase.
|
||||
|
||||
PR c/35742
|
||||
* gcc.dg/pr35742.c: New test.
|
||||
|
||||
|
13
gcc/testsuite/g++.dg/other/error31.C
Normal file
13
gcc/testsuite/g++.dg/other/error31.C
Normal file
@ -0,0 +1,13 @@
|
||||
// PR c++/35335
|
||||
// { dg-do compile }
|
||||
// { dg-options "" }
|
||||
// { dg-bogus "not supported by" "" { target *-*-* } 0 }
|
||||
|
||||
struct A {}; // { dg-message "note: candidates are" }
|
||||
|
||||
void
|
||||
foo ()
|
||||
{
|
||||
A a;
|
||||
a = ({ { 1; } }); // { dg-error "no match for" }
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user