This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Possible bug inheriting std::logic_error
- To: gcc at gcc dot gnu dot org
- Subject: Possible bug inheriting std::logic_error
- From: Paul Wighton <pwighton at uoguelph dot ca>
- Date: Tue, 23 Jan 2001 14:19:38 -0500 (EST)
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