c++/6215: Internal error #2000 in g++ 3.0.4

rodrigc@gcc.gnu.org rodrigc@gcc.gnu.org
Sun Apr 7 18:20:00 GMT 2002


Synopsis: Internal error #2000 in g++ 3.0.4

State-Changed-From-To: open->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Apr  7 18:18:37 2002
State-Changed-Why:
    Problem reproduced with gcc 3.0.4.
    
    With gcc 3.1 20020401 (prerelease), the compiler does not
    crash but produces many compilation errors:
    
    In file included from m.cpp:3:
    AgingCache.h:101: `template<class KeyT, class ValT, class DisposeFun>
       template<class KeyT_, class ValT_, class DisposeFun_> class
       MaciekUtils::AgingCache<KeyT, ValT, DisposeFun>::cache_position' used
       without template parameters
    AgingCache.h:102: ISO C++ forbids declaration of `cp' with no type
    AgingCache.h:122: syntax error before `(' token
    AgingCache.h:130: semicolon missing after declaration of `
       MaciekUtils::AgingCache<KeyT, ValT, DisposeFun>'
    AgingCache.h: In constructor `MaciekUtils::AgingCache<KeyT, ValT,
       DisposeFun>::AgingCache(int, DisposeFun)':
    AgingCache.h:71: class `MaciekUtils::AgingCache<KeyT, ValT, DisposeFun>' does
       not have any field named `_maxsize'
    AgingCache.h:71: class `MaciekUtils::AgingCache<KeyT, ValT, DisposeFun>' does
       not have any field named `_dispfun'
    AgingCache.h: At global scope:
    AgingCache.h:130: ISO C++ forbids defining types within return type
    AgingCache.h:130: syntax error before `(' token
    AgingCache.h:131: ISO C++ forbids declaration of `end' with no type
    AgingCache.h: In function `int MaciekUtils::end()':
    AgingCache.h:132: `_keylist' undeclared (first use this function)
    AgingCache.h:132: (Each undeclared identifier is reported only once for each
       function it appears in.)
    AgingCache.h:132: `cache_position' undeclared (first use this function)
    AgingCache.h: At global scope:
    AgingCache.h:136: syntax error before `&' token
    AgingCache.h:143: syntax error before `&' token
    AgingCache.h:152: syntax error before `&' token
    AgingCache.h:155: parse error before `&' token
    AgingCache.h:162: `keylist_iterator' was not declared in this scope
    AgingCache.h:162: `i' was not declared in this scope
    AgingCache.h:163: parse error before `{' token
    AgingCache.h:166: syntax error before `.' token
    AgingCache.h:167: syntax error before `.' token
    AgingCache.h:168: ISO C++ forbids declaration of `i' with no type
    AgingCache.h:168: `_keylist' was not declared in this scope
    AgingCache.h:169: parse error before `return'
    AgingCache.h:173: parse error before `&' token
    AgingCache.h: In function `void remove_by_iter(...)':
    AgingCache.h:175: `call_dispose_fun' undeclared (first use this function)
    AgingCache.h:176: `_vallist' undeclared (first use this function)
    AgingCache.h:176: base operand of `->' is not a pointer
    AgingCache.h:177: `_keylist' undeclared (first use this function)
    AgingCache.h: At global scope:
    AgingCache.h:181: parse error before `&' token
    AgingCache.h: In function `void call_dispose_fun(...)':
    AgingCache.h:182: `void call_dispose_fun(...)' used prior to declaration
    AgingCache.h:183: `keyiter' undeclared (first use this function)
    AgingCache.h:183: `_dispfun' undeclared (first use this function)
    AgingCache.h: At global scope:
    AgingCache.h:186: `keylist_elem_type' was not declared in this scope
    AgingCache.h:186: template argument 1 is invalid
    AgingCache.h:186: template argument 2 is invalid
    AgingCache.h:186: ISO C++ forbids declaration of `_keylist' with no type
    AgingCache.h:186: `int _keylist' used prior to declaration
    AgingCache.h:187: `ValT' was not declared in this scope
    AgingCache.h:187: template argument 1 is invalid
    AgingCache.h:187: template argument 2 is invalid
    AgingCache.h:187: ISO C++ forbids declaration of `_vallist' with no type
    AgingCache.h:187: `int _vallist' used prior to declaration
    AgingCache.h:189: 'DisposeFun' is used as a type, but is not defined as a type.
    AgingCache.h:190: parse error before `}' token
    AgingCache.h:307: parse error before `::' token
    AgingCache.h:309: `bool operator==(...)' must have an argument of class or
       enumerated type
    AgingCache.h:309: `bool operator==(...)' must take exactly two arguments
    AgingCache.h:314: parse error before `::' token
    AgingCache.h:316: `bool operator!=(...)' must have an argument of class or
    AgingCache.h: In function `void remove_by_iter(...)':
    AgingCache.h:175: `call_dispose_fun' undeclared (first use this function)
    AgingCache.h:176: `_vallist' undeclared (first use this function)
    AgingCache.h:176: base operand of `->' is not a pointer
    AgingCache.h:177: `_keylist' undeclared (first use this function)
    AgingCache.h: At global scope:
    AgingCache.h:181: parse error before `&' token
    AgingCache.h: In function `void call_dispose_fun(...)':
    AgingCache.h:182: `void call_dispose_fun(...)' used prior to declaration
    AgingCache.h:183: `keyiter' undeclared (first use this function)
    AgingCache.h:183: `_dispfun' undeclared (first use this function)
    AgingCache.h: At global scope:
    AgingCache.h:186: `keylist_elem_type' was not declared in this scope
    AgingCache.h:186: template argument 1 is invalid
    AgingCache.h:186: template argument 2 is invalid
    AgingCache.h:186: ISO C++ forbids declaration of `_keylist' with no type
    AgingCache.h:186: `int _keylist' used prior to declaration
    AgingCache.h:187: `ValT' was not declared in this scope
    AgingCache.h:187: template argument 1 is invalid
    AgingCache.h:187: template argument 2 is invalid
    AgingCache.h:187: ISO C++ forbids declaration of `_vallist' with no type
    AgingCache.h:187: `int _vallist' used prior to declaration
    AgingCache.h:189: 'DisposeFun' is used as a type, but is not defined as a type.
    AgingCache.h:190: parse error before `}' token
    AgingCache.h:307: parse error before `::' token
    AgingCache.h:309: `bool operator==(...)' must have an argument of class or
       enumerated type
    AgingCache.h:309: `bool operator==(...)' must take exactly two arguments
    AgingCache.h:314: parse error before `::' token
    AgingCache.h:316: `bool operator!=(...)' must have an argument of class or
       enumerated type

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6215



More information about the Gcc-bugs mailing list