public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58178] New: variant function name was used for user defined constructor
@ 2013-08-17  1:43 chihin.ko at oracle dot com
  2013-08-18 13:18 ` [Bug c++/58178] " paolo.carlini at oracle dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: chihin.ko at oracle dot com @ 2013-08-17  1:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58178

            Bug ID: 58178
           Summary: variant function name was used for user defined
                    constructor
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chihin.ko at oracle dot com

test case:
cat t.cc

#include <stdio.h>
struct base {
   int x;
   base() { x= 2;};
};

struct A {
    static int x;
    struct B :base{
        void f() {
            x++;
            printf("x= %d\n",x);
        }
    };
};

 int A::x = 12;

 main()
 {
     A::B z;
     z.f();
 }
/pkg/gnu/bin/g++  -R/pkg/gnu/lib -R/pkg/gnu/lib/amd64 -g t.cc

mandelstam.us.oracle.com 2528> nm a.out | grep base
[95]    | 134548914|        14|FUNC |WEAK |0    |11     |_ZN4baseC2Ev

base class has user defined constructor, I'm expecting _ZN4baseC1Ev from nm
dump


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

end of thread, other threads:[~2013-08-30 15:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-17  1:43 [Bug c++/58178] New: variant function name was used for user defined constructor chihin.ko at oracle dot com
2013-08-18 13:18 ` [Bug c++/58178] " paolo.carlini at oracle dot com
2013-08-19 18:49 ` chihin.ko at oracle dot com
2013-08-19 21:05 ` chihin.ko at oracle dot com
2013-08-19 21:09 ` chihin.ko at oracle dot com
2013-08-19 21:40 ` paolo.carlini at oracle dot com
2013-08-20  8:49 ` ebotcazou at gcc dot gnu.org
2013-08-20 18:27 ` chihin.ko at oracle dot com
2013-08-30 15:35 ` ebotcazou 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).