Possible bug inheriting std::logic_error

Paul Wighton pwighton@uoguelph.ca
Tue Jan 23 11:19:00 GMT 2001


Hello, please refer to the code below, if it  is well formed, then there
this may be a bug in g++

Complied using gcc version 2.95.3 19991030 (prerelease)
using /gcc-lib/i586-mandrake-linux/...

***********************************************************************
#include <stdexcept>

template<typename E, bool N>
class foo {
  public:
    class bar;
};

/* Take your pick, both give the same result*/

/*template<typename E, bool N> 
class foo<E,N>::bar: public logic_error {};*/

template<typename E, bool N>
class foo<E,N>::bar: public std::logic_error {};

int main () {
  foo f;
}
**********************************************************************

compiled using:

g++ bug1.C

output:

bug1.C:15: Internal compiler error.
bug1.C:15: Please submit a full bug report.
bug1.C:15: See <URL: http://www.gnu.org/software/gcc/bugs.html > for
instructions.

This complies fine on an SGI Irix system.  Is this a gcc problem? or is
this more of an STL problem?

should I submit an official bug report?

Thank-you for your time

Paul Wighton



More information about the Gcc mailing list