This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


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

Re: c++/948


The following reply was made to PR c++/948; it has been noted by GNATS.

From: Doug Henderson <Doug.Henderson@telus.com>
To: "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>,
        "'djhender@telusplanet.net'" <djhender@telusplanet.net>,
        Doug Henderson
	 <Doug.Henderson@telus.com>,
        "'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>
Cc:  
Subject: Re: c++/948
Date: Tue, 5 Dec 2000 15:57:50 -0700 

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=948&database=gcc
 
 
 I have investigated the problem and created the following small piece of
 code which reproduces the reported problem.
 
 Hope this helps.
 
 Doug
 
 ===================
 % cat el.cc
 #include <string>
 
 class obj {
     private:
         static string   str;
 
     public:
         obj();
         virtual ~obj();
     };
 
 string          obj::str("some text"); // (**)
 
 obj::obj () { }
 
 obj::~obj() { }
 ===================
 
 The problem goes away when the marked (**) line is removed.
 
 ===================
 % g++ -v -g1 -Wall -O3 -c el.cc
 Reading specs from /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/specs
 gcc version 2.95.2 19991024 (release)
  /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/cpp -lang-c++ -v
 -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -Asystem(svr3)
 -D__EXCEPTIONS -D__OPTIMIZE__ -g1 -Wall -Acpu(i386) -Amachine(i386) -Di386
 -D__i386 -D__i386__ -D__i386 -D__unix -D_SCO_DS=1 -D_M_I386 -D_M_XENIX
 -D_M_UNIX -D_STRICT_NAMES -D_SCO_XPG_VERS=4 -D_M_I86 -D_M_I86SM
 -D_M_INTERNAT -D_M_SDATA -D_M_STEXT -D_M_BITFIELDS -D_M_SYS5 -D_M_SYSV
 -D_M_SYSIII -D_M_WORDSWAP -Dunix -DM_I386 -DM_UNIX -DM_XENIX -D_SCO_ELF
 -D_SCO_C_DIALECT=1 el.cc /tmp/ccjEGNEg.ii
 GNU CPP version 2.95.2 19991024 (release) (i386, SCO OpenServer 5 Syntax)
 #include "..." search starts here:
 #include <...> search starts here:
  
 /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/../../../../include/g++-3
  /usr/local/include
  
 /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/../../../../i386-pc-sco3.
 2v5.0.5/include
  /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/include
  /usr/include
 End of search list.
 The following default directories have been omitted from the search path:
 End of omitted list.
  /usr/local/lib/gcc-lib/i386-pc-sco3.2v5.0.5/2.95.2/cc1plus /tmp/ccjEGNEg.ii
 -quiet -dumpbase el.cc -g1 -O3 -Wall -version -o /tmp/ccvCXj1y.s
 GNU C++ version 2.95.2 19991024 (release) (i386-pc-sco3.2v5.0.5) compiled by
 GNU C version 2.95.2 19991024 (release).
 el.cc:12: Internal compiler error in `dwarfout_finish', at dwarfout.c:6102
 Please submit a full bug report.
 See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for
 instructions.
 ===================
 

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