diag0100.chk
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,159 行 · 第 1/5 页
CHK
1,159 行
File: source\diag0100.c
(27,10): Error! E148: access to private member 'Z2::a' is not allowed
definition: 'int Z2<float>::a'
(59,16): Error! E121: syntax error
template class instantiation for 'S<int>' was at: (68,1)
(61,13): Error! E006: syntax error; probable cause: missing ';'
template class instantiation for 'S<int>' was at: (68,1)
(65,9): Warning! W014: no reference to symbol 'q'
definition: 'S<int> * q' in 'void S<int>::foo( int )'
template class instantiation for 'S<int>' was at: (68,1)
(43,9): Error! E038: expression must have pointer type
template class member instantiation was at: (48,1)
operand type is 'int (lvalue)'
File: source\diag0101.c
(7,20): Warning! W402: class template 'X2' has already been declared as a friend
definition: '<class template> X2'
(13,24): Error! E363: local class cannot have 'X2' as a friend
definition: '<class template> X2'
(16,1): Warning! W014: no reference to symbol 'LOCAL::f'
definition: 'int LOCAL::f' in 'void foo( void )'
(35,1): Warning! W011: all members are private
(29,14): Error! E148: access to private member 'PP::bad' is not allowed
definition: 'int PP::bad'
template class instantiation for 'LL<int>' was at: (42,1)
File: source\diag0102.c
(11,16): Warning! W297: class friend declaration needs 'class' or 'struct' keyword
(23,10): Error! E148: access to private member 'XX::bad' is not allowed
definition: 'int XX::bad'
template class member instantiation was at: (18,1)
File: source\diag0103.c
(2,6): Error! E457: 'A' was previously declared as a typedef
definition: 'A'
(5,13): Error! E457: 'B' was previously declared as a typedef
definition: 'B'
(20,14): Error! E458: 'G' was previously declared as a variable/function
definition: 'int G'
(23,14): Error! E458: 'H' was previously declared as a variable/function
definition: 'int H( int )'
(39,8): Error! E457: 'ST1' was previously declared as a typedef
definition: 'ST1'
(40,15): Error! E457: 'ST2' was previously declared as a typedef
definition: 'ST2'
(41,8): Warning! W480: variable/function has the same name as the class/enum 'CT1'
definition: 'CT1'
(42,15): Warning! W480: variable/function has the same name as the class/enum 'CT2'
definition: 'CT2'
(43,8): Warning! W480: variable/function has the same name as the class/enum 'UT1'
definition: 'UT1'
(44,15): Warning! W480: variable/function has the same name as the class/enum 'UT2'
definition: 'UT2'
(45,11): Warning! W481: class/enum has the same name as the function/variable 'VN1'
definition: 'int VN1'
(46,12): Warning! W481: class/enum has the same name as the function/variable 'VN2'
definition: 'int VN2'
(47,11): Warning! W481: class/enum has the same name as the function/variable 'FN1'
definition: 'int FN1( int )'
(48,12): Warning! W481: class/enum has the same name as the function/variable 'FN2'
definition: 'int FN2( int )'
File: source\diag0104.c
(3,5): Error! E456: 'main' cannot be a function template
File: source\diag0105.c
(2,6): Error! E080: system dependent test for 386
File: source\diag0106.c
(3,17): Error! E168: static data members are not allowed in an union
(7,17): Error! E168: static data members are not allowed in an union
(9,2): Error! E313: anonymous struct/union contains a function member 'foo'
definition: 'void foo( void )'
(17,21): Error! E322: static data members are not allowed in a local class
(19,9): Error! E362: local class can only have its containing function as a friend
(20,15): Error! E352: cannot access enclosing function's auto variable 'a'
definition: 'int a' in 'void f11( void )'
(22,13): Error! E374: object (or object pointer) required to access non-static data member
(30,20): Error! E632: redeclaration of 'X28::~X28' has different attributes
definition: 'X28::~X28( void )'
(30,20): Error! E907: redeclaration of member function 'X28::~X28' not allowed
definition: 'X28::~X28( void )'
(33,20): Warning! W621: pure virtual destructors must have a definition
(34,20): Error! E907: redeclaration of member function 'X32::~X32' not allowed
definition: 'X32::~X32( void )'
(38,8): Error! E431: defining 'x38' is not possible because 'X32' is an abstract class
definition: 'X32 x38'
'X32' contains the following pure virtual functions
pure virtual function 'X32::~X32( void )' defined at: (34,13)
(45,1): Error! E632: redeclaration of 'X40::foo' has different attributes
definition: 'void X40::foo( void )'
(51,1): Error! E371: constructor is required for a class with a reference member
File: source\diag0107.c
(9,14): Error! E042: symbol 'XX::a' already defined
definition: 'int XX<int>::a'
template class instantiation for 'XX<int>' was at: (10,6)
(10,5): Warning! W011: all members are private
template class instantiation for 'XX<int>' was at: (10,6)
File: source\diag0108.c
(6,14): Error! E042: symbol 'XX::a' already defined
definition: 'int XX<int>::a'
template class instantiation for 'XX<int>' was at: (9,1)
(7,5): Warning! W011: all members are private
template class instantiation for 'XX<int>' was at: (9,1)
File: source\diag0109.c
(4,14): Error! E042: symbol 'XX::a' already defined
definition: 'int XX<int * (*)( int * )>::a'
template class instantiation for 'XX<int * (*)( int * )>' was at: (12,10)
function template binding for 'foo' was at: (12,10)
template function 'XX<?> foo( ?, ? )' defined at: (8,11)
(5,5): Warning! W011: all members are private
template class instantiation for 'XX<int * (*)( int * )>' was at: (12,10)
function template binding for 'foo' was at: (12,10)
template function 'XX<?> foo( ?, ? )' defined at: (8,11)
File: source\diag0110.c
(4,10): Error! E040: expression for '.' must be a class, struct or union
template function instantiation for 'foo' was at: (11,9)
definition: 'void foo( int )'
function template binding of 'foo' was at: (11,9)
template function 'void foo( ? )' defined at: (2,10)
operand type is 'int (lvalue)'
File: source\diag0111.c
(7,20): Error! E324: conversion of return value is impossible
template class instantiation for 'S<int>' was at: (18,10)
function template binding for 'foo' was at: (18,10)
template function 'S<?> foo( ?, ? * )' defined at: (12,10)
source conversion type is 'S<int>'
target conversion type is 'void *'
(8,9): Warning! W726: no reference to formal parameter 'x'
definition: 'int x' in 'void * S<int>::foo( int )'
template class instantiation for 'S<int>' was at: (18,10)
function template binding for 'foo' was at: (18,10)
template function 'S<?> foo( ?, ? * )' defined at: (12,10)
File: source\diag0112.c
(6,5): Error! E385: attempt to overload function 'S::foo' with a different return type
definition: 'int S<int>::foo( int )'
template class member instantiation was at: (15,1)
(6,5): Error! E254: 'S::foo' has not been declared as a member
definition: 'void S<int>::foo( int )'
template class member instantiation was at: (15,1)
(7,10): Error! E040: expression for '.' must be a class, struct or union
template class member instantiation was at: (15,1)
operand type is 'int (lvalue)'
File: source\diag0113.c
(9,12): Warning! W732: class should have a name since it inherits a class
(16,15): Warning! W188: base class is inherited with private access
(23,8): Error! E459: private base class accessed to convert assignment expression
source conversion type is 'BAD *'
target conversion type is 'S *'
(26,6): Error! E547: cannot access 'S::a' through a private base class
definition: 'int S::a'
(33,6): Error! E386: attempt to use pointer to undefined class
'U1' defined at: (29,8)
(40,6): Error! E516: class for object is not defined
'U2' defined at: (36,8)
'U2' defined at: (36,8)
File: source\diag0114.c
(4,16): Error! E326: defining 'S1::x' is not possible because its type has unknown size
definition: 'S2<double> S1<double>::x'
template class instantiation for 'S1<double>' was at: (10,19)
template class instantiation for 'S2<double>' was at: (16,1)
(12,14): Error! E041: expression for '->' must be pointer to class, struct or union
template class instantiation for 'S2<double>' was at: (16,1)
operand type is '<error> *'
File: source\diag0115.c
(16,14): Error! E436: cannot construct an abstract class
'A' defined at: (12,8)
'A' contains the following pure virtual functions
pure virtual function 'void A::pure( void )' defined at: (13,18)
(18,22): Error! E436: cannot construct an abstract class
'A' defined at: (12,8)
'A' contains the following pure virtual functions
pure virtual function 'void A::pure( void )' defined at: (13,18)
File: source\diag0116.c
(1,27): Error! E197: type cannot be defined in this context
(4,1): Warning! W014: no reference to symbol 'S::mbr'
definition: 'int S::mbr' in 'void x1( void )'
(5,47): Error! E197: type cannot be defined in this context
(6,52): Error! E197: type cannot be defined in this context
(8,24): Error! E639: form is '#pragma template_depth level' where 'level' is a non-zero number
(18,14): Error! E640: possible non-terminating template instantiation (use "#pragma template_depth 26" to increase depth)
template function instantiation for 'foo' was at: (18,14)
definition: 'void foo( D & )'
function template binding of 'foo' was at: (18,14)
template function 'void foo( ? & )' defined at: (11,10)
File: source\diag0117.c
(3,16): Error! E326: defining 'S1::x' is not possible because its type has unknown size
definition: 'S2<double> S1<double>::x'
template class instantiation for 'S1<double>' was at: (9,19)
template class instantiation for 'S2<double>' was at: (15,1)
(11,14): Error! E041: expression for '->' must be pointer to class, struct or union
template class instantiation for 'S2<double>' was at: (15,1)
operand type is '<error> *'
File: source\diag0118.c
(6,13): Error! E112: cannot inherit an undefined base class 'U'
(6,16): Error! E641: cannot inherit a partially defined base class 'S'
(11,18): Error! E641: cannot inherit a partially defined base class 'Q'
(19,23): Error! E641: cannot inherit a partially defined base class 'S3<int>'
template class instantiation for 'S1<int>' was at: (23,17)
template class instantiation for 'S2<int>' was at: (28,9)
template class instantiation for 'S3<int>' was at: (31,1)
File: source\diag0119.c
(3,8): Error! E647: cannot #undef '__LINE__'
(4,8): Error! E647: cannot #undef '__FILE__'
(5,8): Error! E647: cannot #undef '__DATE__'
(6,8): Error! E647: cannot #undef '__TIME__'
(8,8): Error! E647: cannot #undef '__cplusplus'
(9,8): Error! E647: cannot #undef 'defined'
(11,25): Error! E648: cannot #define '__LINE__'
(12,25): Error! E648: cannot #define '__FILE__'
(13,25): Error! E648: cannot #define '__DATE__'
(14,25): Error! E648: cannot #define '__TIME__'
(16,25): Error! E648: cannot #define '__cplusplus'
(17,25): Error! E648: cannot #define 'defined'
File: source\diag0120.c
(19,32): Error! E058: expression must be a constant
(21,33): Error! E058: expression must be a constant
(21,50): Error! E058: expression must be a constant
(22,11): Error! E545: cannot create an undefined type with 'operator new'
(38,5): Warning! W201: declaration statement follows an if statement
(39,9): Warning! W128: initializer for variable 'dummy' cannot be bypassed
definition: 'int dummy' in 'void f33( int )'
(39,19): Error! E042: symbol 'dummy' already defined
definition: 'int dummy' in 'void f33( int )'
(40,5): Warning! W202: declaration statement follows an else statement
(42,5): Warning! W203: declaration statement follows a switch statement
(40,11): Warning! W893: switch statement has no case labels
(44,5): Warning! W205: declaration statement cannot follow a while statement
(46,5): Warning! W206: declaration statement cannot follow a do statement
(49,1): Warning! W207: declaration statement cannot follow a for statement
File: source\diag0121.c
(2,42): Warning! W248: using default arguments would be overload ambiguous with 'operator new'
(5,55): Error! E488: 'operator delete' cannot be overloaded
File: source\diag0122.c
(12,8): Error! E651: cannot instantiate foo
template function 'void foo( xyz<?,-1>, int (* )( ? const &, ? const & ))' defined at: (9,10)
File: source\diag0123.c
(19,24): Warning! W367: conditional expression in if statement is always true
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?