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

Possible bug inheriting std::logic_error


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


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