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

* [Bug c++/58178] variant function name was used for user defined constructor
  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 ` paolo.carlini at oracle dot com
  2013-08-19 18:49 ` chihin.ko at oracle dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-18 13:18 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-08-18
     Ever confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Indeed. Please provide information about your target, thanks.


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

* [Bug c++/58178] variant function name was used for user defined constructor
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: chihin.ko at oracle dot com @ 2013-08-19 18:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from chihin ko <chihin.ko at oracle dot com> ---
a.out execution does not have problem, it is the debugging support would have
problem.


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

* [Bug c++/58178] variant function name was used for user defined constructor
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: chihin.ko at oracle dot com @ 2013-08-19 21:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from chihin ko <chihin.ko at oracle dot com> ---
Oracle Solaris 10 8/11 s10x_u10wos_17b X86

DW_AT_producer              "GNU C++ 4.8.1 -mtune=generic -march=pentium4 -g"


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

* [Bug c++/58178] variant function name was used for user defined constructor
  2013-08-17  1:43 [Bug c++/58178] New: variant function name was used for user defined constructor chihin.ko at oracle dot com
                   ` (2 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: chihin.ko at oracle dot com @ 2013-08-19 21:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from chihin ko <chihin.ko at oracle dot com> ---
On Linux:

pirandello 934> cat /etc/*release*
Enterprise Linux Enterprise Linux Server release 5.4 (Carthage)
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

/usr/bin/g++ -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)


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

* [Bug c++/58178] variant function name was used for user defined constructor
  2013-08-17  1:43 [Bug c++/58178] New: variant function name was used for user defined constructor chihin.ko at oracle dot com
                   ` (3 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-19 21:40 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu.org

--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thus Solaris (current Linux targets are fine, we know that). Maybe Eric can
have a look.


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

* [Bug c++/58178] variant function name was used for user defined constructor
  2013-08-17  1:43 [Bug c++/58178] New: variant function name was used for user defined constructor chihin.ko at oracle dot com
                   ` (4 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-08-20  8:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
The configure line for the compiler is needed on Solaris as well.


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

* [Bug c++/58178] variant function name was used for user defined constructor
  2013-08-17  1:43 [Bug c++/58178] New: variant function name was used for user defined constructor chihin.ko at oracle dot com
                   ` (5 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: chihin.ko at oracle dot com @ 2013-08-20 18:27 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from chihin ko <chihin.ko at oracle dot com> ---
(In reply to Eric Botcazou from comment #8)
> The configure line for the compiler is needed on Solaris as well.

Using built-in specs.
COLLECT_GCC=/pkg/gnu/bin/g++-4.8.1-5.10
COLLECT_LTO_WRAPPER=/pkg/gnu/libexec/gcc/i386-pc-solaris2.10/4.8.1/lto-wrapper
Target: i386-pc-solaris2.10
Configured with: ../gcc-4.8.1-src/configure --prefix=/pkg/gnu
--with-as=/pkg/gnu/bin/gnu-as --with-gnu-as
--enable-languages=c++,fortran,go,java --enable-shared --enable-shared
--with-gmp=/pkg/gnu --with-mpc=/pkg/local
--with-boot-ldflags=-R/pkg/local/lib:/pkg/gnu/lib --program-suffix=-4.8.1-5.10
Thread model: posix
gcc version 4.8.1 (GCC)


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

* [Bug c++/58178] variant function name was used for user defined constructor
  2013-08-17  1:43 [Bug c++/58178] New: variant function name was used for user defined constructor chihin.ko at oracle dot com
                   ` (6 preceding siblings ...)
  2013-08-20 18:27 ` chihin.ko at oracle dot com
@ 2013-08-30 15:35 ` ebotcazou at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2013-08-30 15:35 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW

--- Comment #10 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Confirmed, maybe related to the missing COMDAT support.


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