stdexcept broken 1.0.3?

Neal Becker neal@ctd.comsat.com
Fri May 29 09:20:00 GMT 1998


This configure test (part of ddd-2.2.3) fails.

#line 2468 "configure"
//#include "confdefs.h"
#include <stdexcept>
int main() {
try { throw runtime_error("too many fingers on keyboard"); }
 catch(const exception& e) { const char *s = e.what(); }
; return 0; }

In file included from configure:2469:
/usr/include/g++/stdexcept:40: parse error before `{'
/usr/include/g++/stdexcept:44: virtual outside class declaration
/usr/include/g++/stdexcept:44: non-member function `what()' cannot have `const' method qualifier
/usr/include/g++/stdexcept: In function `const char * what()':
/usr/include/g++/stdexcept:44: `_what' undeclared (first use this function)
/usr/include/g++/stdexcept:44: (Each undeclared identifier is reported only once
/usr/include/g++/stdexcept:44: for each function it appears in.)
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:47: base class `logic_error' has incomplete type
/usr/include/g++/stdexcept: In method `domain_error::domain_error(const class basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
/usr/include/g++/stdexcept:49: type `logic_error' is not an immediate basetype for `domain_error'
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:52: base class `logic_error' has incomplete type
/usr/include/g++/stdexcept: In method `invalid_argument::invalid_argument(const class basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
/usr/include/g++/stdexcept:54: type `logic_error' is not an immediate basetype for `invalid_argument'
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:57: base class `logic_error' has incomplete type
/usr/include/g++/stdexcept: In method `length_error::length_error(const class basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
/usr/include/g++/stdexcept:59: type `logic_error' is not an immediate basetype for `length_error'
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:62: base class `logic_error' has incomplete type
/usr/include/g++/stdexcept: In method `out_of_range::out_of_range(const class basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
/usr/include/g++/stdexcept:64: type `logic_error' is not an immediate basetype for `out_of_range'
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:67: parse error before `{'
/usr/include/g++/stdexcept:71: virtual outside class declaration
/usr/include/g++/stdexcept:71: non-member function `what()' cannot have `const' method qualifier
/usr/include/g++/stdexcept: In function `const char * what()':
/usr/include/g++/stdexcept:71: redefinition of `const char * what()'
/usr/include/g++/stdexcept:44: `const char * what()' previously defined here
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:72: parse error before `protected'
/usr/include/g++/stdexcept:76: base class `runtime_error' has incomplete type
/usr/include/g++/stdexcept: In method `range_error::range_error(const class basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
/usr/include/g++/stdexcept:78: type `runtime_error' is not an immediate basetype for `range_error'
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:81: base class `runtime_error' has incomplete type
/usr/include/g++/stdexcept: In method `overflow_error::overflow_error(const class basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
/usr/include/g++/stdexcept:83: type `runtime_error' is not an immediate basetype for `overflow_error'
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:86: base class `runtime_error' has incomplete type
/usr/include/g++/stdexcept: In method `underflow_error::underflow_error(const class basic_string<char,string_char_traits<char>,__default_alloc_template<true,0> > &)':
/usr/include/g++/stdexcept:88: type `runtime_error' is not an immediate basetype for `underflow_error'
/usr/include/g++/stdexcept: At top level:
/usr/include/g++/stdexcept:91: parse error before `}'
configure: In function `int main()':
configure:2471: type `runtime_error' is not yet defined
configure:2472: parse error before `&'
configure:2472: confused by earlier errors, bailing out



More information about the Gcc-bugs mailing list