re PR c++/52841 (error: type 'Solvable' is not a base type for type 'Resolvable')

2012-06-06  Fabien Chene  <fabien@gcc.gnu.org>

	PR c++/52841
	* parser.c (cp_parser_alias_declaration): Return earlier
	if an error occured.

	* g++.dg/cpp0x/pr52841.C: New testcase.

From-SVN: r188264
This commit is contained in:
Richard Biener 2012-06-06 12:22:16 +00:00
parent d0582dc181
commit ce6d2586b5
4 changed files with 31 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-06-06 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/52841
* parser.c (cp_parser_alias_declaration): Return earlier
if an error occured.
2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/53524

View File

@ -15061,6 +15061,9 @@ cp_parser_alias_declaration (cp_parser* parser)
cp_parser_require (parser, CPP_EQ, RT_EQ);
if (cp_parser_error_occurred (parser))
return error_mark_node;
/* Now we are going to parse the type-id of the declaration. */
/*

View File

@ -1,3 +1,8 @@
2012-06-06 Fabien Chêne <fabien@gcc.gnu.org>
PR c++/52841
* g++.dg/cpp0x/pr52841.C: New testcase.
2012-06-06 Richard Guenther <rguenther@suse.de>
PR tree-optimization/53081

View File

@ -0,0 +1,17 @@
// { dg-do compile }
struct Solvable;
namespace sat
{
class Solvable
{
public:
typedef bool bool_type;
};
}
class Resolvable : public sat::Solvable
{
public:
using sat::Solvable::bool_type;
};