[Bug debug/20505] [4.0/4.1 Regression] internal error when compiling with -ggdb2 and no error with -ggdb1

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Mar 16 23:25:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-16 23:25 -------
Confirmed, reduce testcase:
struct a
{
  int b,c;
};
template <int>
struct b
{
  static const int d;
  virtual bool f() const=0;
};
template <>
const int b<2>::d = ((int)(&((a*)1)->c) - 1);

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-16 23:25:28
               date|                            |


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



More information about the Gcc-bugs mailing list