This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52841] New: [4.7/4.8 Regression] error: type 'Solvable' is not a base type for type 'Resolvable'
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Apr 2012 12:13:48 +0000
- Subject: [Bug c++/52841] New: [4.7/4.8 Regression] error: type 'Solvable' is not a base type for type 'Resolvable'
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52841
Bug #: 52841
Summary: [4.7/4.8 Regression] error: type 'Solvable' is not a
base type for type 'Resolvable'
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: rejects-valid
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rguenth@gcc.gnu.org
struct Solvable;
namespace sat
{
class Solvable
{
public:
typedef bool bool_type;
};
}
class Resolvable : public sat::Solvable
{
public:
using sat::Solvable::bool_type;
};
when compiled with -std=c++0x is rejected with
T.cc:14:28: error: type 'Solvable' is not a base type for type 'Resolvable'
It works when using
using Solvable::bool_type
and when
using ::sat::Solvable::bool_type
and it works without -std=c++0x