This is the mail archive of the gcc-bugs@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]

c++/1583: with -ggdb breaks with static & template code



>Number:         1583
>Category:       c++
>Synopsis:       with -ggdb breaks with static & template code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 07 23:36:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Yotam Medini
>Release:        unknown-1.0
>Organization:
>Environment:
iwsl010:251> uname -a; g++ -v
Linux iwsl010 2.2.12-20smp #2 SMP Mon Feb 14 05:41:40 PST 2000 i686 unknown
Reading specs from /afs/iil/nike/data/tools/sys/gcc-2.95.2/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
>Description:
g++ compilation breaks if using -ggdb with message:
 
 bug.cpp:15: Internal compiler error in 
   `output_die', at dwarf2out.c:5426


If  my attachment fails:

#include <string>

template<class T>
class C {
 public:
   C(unsigned int index);
 private:
   T mValue;
};

class Tab {
 public:
   Tab() {
      static std::string  sFalse("false");
      C<char>* tap = new C<char>(1);
      e[1][0] = tap;
   }
   C<char>  *e[16][2];
}; // Tab
static Tab  tab;
>How-To-Repeat:
g++ -c -ggdb  bug.cpp
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug.cpp"

I2luY2x1ZGUgPHN0cmluZz4KCnRlbXBsYXRlPGNsYXNzIFQ+CmNsYXNzIEMgewogcHVibGljOgog
ICBDKHVuc2lnbmVkIGludCBpbmRleCk7CiBwcml2YXRlOgogICBUIG1WYWx1ZTsKfTsKCmNsYXNz
IFRhYiB7CiBwdWJsaWM6CiAgIFRhYigpIHsKICAgICAgc3RhdGljIHN0ZDo6c3RyaW5nICBzRmFs
c2UoImZhbHNlIik7CiAgICAgIEM8Y2hhcj4qIHRhcCA9IG5ldyBDPGNoYXI+KDEpOwogICAgICBl
WzFdWzBdID0gdGFwOwogICB9CiAgIEM8Y2hhcj4gICplWzE2XVsyXTsKfTsgLy8gVGFiCnN0YXRp
YyBUYWIgIHRhYjsK

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