This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/8314] Enums as template parameters produce "can't find class" errors


https://sourceware.org/bugzilla/show_bug.cgi?id=8314

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |keiths at redhat dot com

--- Comment #4 from Keith Seitz <keiths at redhat dot com> ---
Like Tom, I still see the same behavior in HEAD: "weird" class name, but
printing seems to work fine:

Temporary breakpoint 1, main () at 8314.cc:15
15         foo<GSimpleNetConn> f;
(gdb) n
17         return f.get ();
(gdb) ptype f
type = struct foo<(GNetConn)0> {
    GNetConn type_;
  public:
    foo(void);
    GNetConn get(void) const;
}

However, there is one specific (and very important) usage that causes problems,
and as a result, I am not going to close this bug:

(gdb) ptype foo<GSimpleNetConn>
No symbol "foo<GSimpleNetConn>" in current context.

That is not satisfactory at all.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]