public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9728: Err in non-virtual func name in dump class file
@ 2003-02-18  0:04 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-18  0:04 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lei, michaelw, nobody

Synopsis: Err in non-virtual func name in dump class file

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Tue Feb 18 00:04:09 2003
State-Changed-Why:
    Confirmed. The mangled name in the report allegedly
    expected at this place is
      _ZThn4_N1CIiE6v_funcEv
      non-virtual thunk [nv:-4] to C<int>::v_func()
    by the way.
    
    We get the same behavior for 3.2 through to 3.4 of today.
    However, the actual content of the vtable is correct, it
    is just the dump that is wrong.
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9728


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

* c++/9728: Err in non-virtual func name in dump class file
@ 2003-02-17 18:36 lei
  0 siblings, 0 replies; 2+ messages in thread
From: lei @ 2003-02-17 18:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: michaelw


>Number:         9728
>Category:       c++
>Synopsis:       Err in non-virtual func name in dump class file
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 17 18:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Lei Huang
>Release:        GCC Version: 3.2.0
>Organization:
>Environment:
System Type:
Linux Version 2.4.19 SuSE SLES 8 (ppc) - Kernel 2.4.19-ul1-ppc64-SMP (36).
GNU assembler version 2.12.90.0.15 (powerpc-suse-linux) using BFD version 2.12.9
0.0.15 20020717 (SuSE)
Options given when GCC was configured/built:
Configured with: /usr/src/packages/BUILD/cross-ppc64-gcc-3.2/gcc-3.2/configure -
-enable-languages=c,c++,f77 --prefix=/opt/cross --host=powerpc-suse-linux --targ
et=powerpc64-linux --enable-threads=posix --disable-nls --enable-shared --with-h
eaders=/usr/src/packages/BUILD/cross-ppc64-gcc-3.2/include-ppc64-glibc-2.2.5
Thread model: posix
gcc version 3.2
>Description:
Sourc code for a.cpp:
------------------------------------------------
struct A { virtual void v_func(){}; };
struct B { virtual void v_func(){}; };

template <class T> struct C: public B, public A {
        C(T i) {};
        void v_func(){};
};

C<int> pc(10);
------------------------------------------------

Actual class hierarchy file (a.cpp.class):
------------------------------------------------
in line 30 of a.cpp.class
20    C<T>::v_func() [with T = int]
------------------------------------------------

Expected Behaviour:
---------------------------------------------------
in line 30 of a.cpp.class
20    C<T>::_ZThn4_N1CIiE6v_funcEv() [with T = int]
---------------------------------------------------

a.ii generated with -save-temps option
------------------------------------------------
# 1 "a.cpp"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "a.cpp"
struct A { virtual void v_func(){}; };
struct B { virtual void v_func(){}; };

template <class T> struct C: public B, public A {
        C(T i) {};
        void v_func(){};
};

C<int> pc(10);
------------------------------------------------
>How-To-Repeat:
$g++ -fdump-class-hierarchy -c a.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-02-18  0:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-18  0:04 c++/9728: Err in non-virtual func name in dump class file bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-02-17 18:36 lei

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).