public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52841] New: [4.7/4.8 Regression] error: type 'Solvable' is not a base type for type 'Resolvable'
@ 2012-04-03 12:14 rguenth at gcc dot gnu.org
  2012-04-03 12:16 ` [Bug c++/52841] " rguenth at gcc dot gnu.org
                   ` (22 more replies)
  0 siblings, 23 replies; 24+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-04-03 12:14 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2012-06-14 12:58 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-03 12:14 [Bug c++/52841] New: [4.7/4.8 Regression] error: type 'Solvable' is not a base type for type 'Resolvable' rguenth at gcc dot gnu.org
2012-04-03 12:16 ` [Bug c++/52841] " rguenth at gcc dot gnu.org
2012-04-03 13:06 ` redi at gcc dot gnu.org
2012-04-03 20:07 ` fabien at gcc dot gnu.org
2012-04-06 19:40 ` david.abdurachmanov at gmail dot com
2012-04-12 12:30 ` rguenth at gcc dot gnu.org
2012-04-12 12:53 ` fabien at gcc dot gnu.org
2012-04-13 13:16 ` rguenth at gcc dot gnu.org
2012-04-17 21:07 ` fabien at gcc dot gnu.org
2012-04-17 21:11 ` fabien at gcc dot gnu.org
2012-05-03 11:23 ` rguenth at gcc dot gnu.org
2012-05-04 19:46 ` fabien at gcc dot gnu.org
2012-05-04 19:51 ` redi at gcc dot gnu.org
2012-05-05 18:04 ` fabien at gcc dot gnu.org
2012-05-16  3:12 ` ppluzhnikov at google dot com
2012-05-16  3:29 ` hjl.tools at gmail dot com
2012-05-30 19:39 ` ppluzhnikov at google dot com
2012-06-06 12:23 ` rguenth at gcc dot gnu.org
2012-06-06 12:24 ` [Bug c++/52841] [4.7 " rguenth at gcc dot gnu.org
2012-06-06 12:26 ` rguenth at gcc dot gnu.org
2012-06-14  8:45 ` rguenth at gcc dot gnu.org
2012-06-14 12:56 ` rguenth at gcc dot gnu.org
2012-06-14 12:56 ` rguenth at gcc dot gnu.org
2012-06-14 12:58 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).