diag0000.chk

来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,112 行 · 第 1/5 页

CHK
1,112
字号
File: ..\diagnose\source\diag0001.c 
(13,17): Error! E048: bit-field width must be positive 
(16,18): Error! E046: bit-field width is too large 
(20,18): Error! E046: bit-field width is too large 
(22,17): Error! E048: bit-field width must be positive 
(25,19): Error! E046: bit-field width is too large 
(29,19): Error! E046: bit-field width is too large 
(31,17): Error! E048: bit-field width must be positive 
(34,19): Error! E046: bit-field width is too large 
(38,19): Error! E046: bit-field width is too large 
(42,12): Error! E141: bit-field declaration must have a base type specified 
(44,18): Error! E142: illegal qualification of a bit-field declaration 
(45,19): Error! E142: illegal qualification of a bit-field declaration 
(46,18): Error! E142: illegal qualification of a bit-field declaration 
(52,15): Error! E140: bit-field declaration cannot have a storage class specifier 
(54,14): Error! E049: bit-field base type must be an integral type 
(55,15): Error! E047: width of a named bit-field must not be zero 
(56,1): Error! E370: constructor is required for a class with a const member 
File: ..\diagnose\source\diag0002.c 
(4,29): Error! E143: duplicate base qualifier 
(4,29): Warning! W188: base class is inherited with private access 
(7,28): Error! E144: only one access specifier is allowed 
File: ..\diagnose\source\diag0003.c 
(7,14): Error! E110: union cannot be used as a base class 
(13,13): Error! E111: union cannot have a base class 
(16,14): Error! E641: cannot inherit a partially defined base class 'E' 
File: ..\diagnose\source\diag0004.c 
(12,18): Error! E113: repeated direct base class will cause ambiguities 
(16,26): Error! E113: repeated direct base class will cause ambiguities 
(18,11): Error! E126: class 'X3' has already been defined 
(20,14): Error! E641: cannot inherit a partially defined base class 'Z' 
File: ..\diagnose\source\diag0005.c 
(15,17): Error! E168: static data members are not allowed in an union 
(16,29): Error! E109: virtual member functions are not allowed in an union 
(17,29): Error! E109: virtual member functions are not allowed in an union 
(18,17): Error! E169: invalid storage class for a member 
(19,20): Error! E318: unions cannot have members with user-defined assignment operators 
(20,18): Error! E183: unions cannot have members with constructors 
(21,18): Error! E317: unions cannot have members with destructors 
File: ..\diagnose\source\diag0006.c 
(5,23): Error! E170: declaration is too complicated 
(21,49): Error! E124: expression is too complicated 
(28,9): Error! E121: syntax error 
(37,1): Warning! W205: declaration statement cannot follow a while statement 
(37,1): Warning! W014: no reference to symbol 'a' 
  'int a' in 'void bi_expr( void )' defined at: (10,9) 
(48,22): Error! E171: exception declaration is too complicated 
(51,1): Error! E624: catch block does not immediately follow try block 
(60,22): Error! E184: statement is too complicated 
File: ..\diagnose\source\diag0007.c 
(5,9): Error! E172: floating-point constant too large to represent 
(6,10): Error! E172: floating-point constant too large to represent 
(7,9): Error! E173: floating-point constant too small to represent 
File: ..\diagnose\source\diag0008.c 
(9,1): Error! E175: range of enum constants cannot be represented 
File: ..\diagnose\source\diag0009.c 
(22,12): Error! E584: constructor for variable 'a' may not execute 
  'S a' in 'void test2( void )' defined at: (20,11) 
(76,10): Error! E584: constructor for variable 'a' may not execute 
  'S a' in 'void test5( void )' defined at: (67,11) 
(96,12): Error! E584: constructor for variable 'a' may not execute 
  'S a' in 'void test7( void )' defined at: (94,11) 
File: ..\diagnose\source\diag0010.c 
(12,18): Error! E085: maximum class size has been exceeded 
File: ..\diagnose\source\diag0011.c 
(3,10): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression 
(3,20): Warning! W594: construct resolved as a declaration/type 
(4,8): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression 
(5,1): Warning! W594: construct resolved as a declaration/type 
(5,1): Warning! W014: no reference to symbol 'fp' 
  'void (* fp)( int, int )' in 'void foo( void )' defined at: (3,12) 
(5,1): Warning! W014: no reference to symbol 'a' 
  'int a' in 'void foo( void )' defined at: (4,9) 
(15,9): Warning! W628: expression is not meaningful 
(20,12): Warning! W750: function prototype in block scope missing 'extern' 
  function prototype is 'int ( int )' 
(20,27): Error! E195: 'sizeof' is not allowed for a function 
(21,1): Warning! W014: no reference to symbol 'a' 
  'int a' in 'void decl( void )' defined at: (20,9) 
(21,1): Warning! W014: no reference to symbol 'c' 
  'int c[1]' in 'void decl( void )' defined at: (20,24) 
(25,8): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression 
(25,17): Warning! W597: encountered another ambiguous construct during disambiguation 
(25,21): Warning! W594: construct resolved as a declaration/type 
(25,34): Warning! W594: construct resolved as a declaration/type 
(25,12): Warning! W750: function prototype in block scope missing 'extern' 
  function prototype is 'int ( int )' 
(25,24): Error! E195: 'sizeof' is not allowed for a function 
(26,1): Warning! W014: no reference to symbol 'a' 
  'int a' in 'void expr_decl( void )' defined at: (25,9) 
(26,1): Warning! W014: no reference to symbol 'c' 
  'int c[1]' in 'void expr_decl( void )' defined at: (25,22) 
File: ..\diagnose\source\diag0012.c 
(1,21): Error! E083: function cannot return a function 
(3,22): Error! E082: function cannot return an array 
(5,19): Error! E081: cannot define an array of functions 
(7,11): Error! E218: cannot define an array of 'void' 
(9,9): Error! E220: cannot define a reference to 'void' 
(9,9): Error! E394: reference object must be initialized 
(11,10): Error! E221: cannot define a reference to another reference 
(13,12): Error! E219: cannot define an array of references 
(13,12): Error! E394: reference object must be initialized 
(15,9): Error! E222: cannot define a pointer to a reference 
(17,7): Error! E224: 'i' is a variable of type 'void' 
(22,7): Error! E224: 'l' is a variable of type 'void' 
(23,4): Error! E224: 'm' is a variable of type 'void' 
File: ..\diagnose\source\diag0013.c 
(14,17): Error! E226: function 'fi' is not distinct 
  'void fi( int )' defined at: (13,6) 
(21,7): Error! E227: overloaded function is ambiguous for arguments used in call 
  ambiguous function: void ff( float ) defined at: (16,6) 
  ambiguous function: void ff( double ) defined at: (17,6) 
(22,7): Error! E189: overloaded function cannot be selected for arguments used in call 
  rejected function: void ff( float ) defined at: (16,6) 
  rejected function: void ff( double ) defined at: (17,6) 
(37,5): Error! E229: function 'foo' has already been defined 
  'int foo( int )' defined at: (30,5) 
(44,30): Error! E226: function 'A::operator int ' is not distinct 
  'A::operator int ()' defined at: (43,9) 
(51,23): Error! E226: function 'bar' is not distinct 
  'int bar( int, char )' defined at: (50,5) 
(52,25): Error! E385: attempt to overload function 'bar' with a different return type 
  'float bar( char *, float )' defined at: (49,7) 
File: ..\diagnose\source\diag0014.c 
(2,25): Error! E232: user-defined conversion must be a function 
(6,28): Error! E233: user-defined conversion has an argument list 
(10,26): Error! E231: user-defined conversion has a return type 
(11,26): Error! E231: user-defined conversion has a return type 
(15,12): Error! E235: destructor must be a function 
(19,15): Error! E234: destructor cannot have a return type 
(23,11): Error! E234: destructor cannot have a return type 
(27,11): Error! E235: destructor must be a function 
(31,22): Error! E236: destructor has an argument list 
(32,14): Error! E236: destructor has an argument list 
(36,27): Error! E237: 'operator +' must be a function 
File: ..\diagnose\source\diag0015.c 
(2,25): Error! E243: default arguments are not part of a function's type 
(5,39): Error! E244: missing default arguments 
(5,39): Error! E243: default arguments are not part of a function's type 
(6,33): Error! E244: missing default arguments 
(10,27): Warning! W744: 'operator +' does not have a return type specified ('int' assumed) 
(10,27): Error! E245: overloaded operator cannot have default arguments 
(15,38): Warning! W248: using default arguments would be overload ambiguous with 'fn2' 
  'int fn2( int, int )' defined at: (14,5) 
(18,38): Warning! W249: using default arguments would be overload ambiguous with 'fn3' using default arguments 
  'int fn3( int, int [, int ])' defined at: (17,26) 
(18,38): Warning! W248: using default arguments would be overload ambiguous with 'fn3' 
  'int fn3( int, int, int )' defined at: (17,5) 
(32,46): Error! E247: cannot redefine default argument for 'foo' 
  'int foo( int, int [, int, int ])' defined at: (31,34) 
(32,46): Error! E247: cannot redefine default argument for 'foo' 
  'int foo( int, int, int [, int ])' defined at: (30,43) 
(36,41): Warning! W249: using default arguments would be overload ambiguous with 'fubar' using default arguments 
  'void fubar( int [, int, ... ])' defined at: (35,24) 
File: ..\diagnose\source\diag0016.c 
(5,13): Error! E253: '::' qualifier cannot be used in this context 
(27,1): Error! E254: 'S::foo' has not been declared as a member 
  'void S::foo( double )' defined at: (26,9) 
(33,10): Error! E252: class declaration has not been seen for '~T' 
(33,8): Error! E539: class of destructor must be class of object being destructed 
File: ..\diagnose\source\diag0017.c 
(10,13): Warning! W188: base class is inherited with private access 
(11,9): Error! E257: access declarations may only be 'public' or 'protected' 
(13,9): Error! E427: 'z' has not been declared as a member 
(14,9): Error! E427: 'd' has not been declared as a member 
(15,9): Error! E259: class in access declaration ('Q') must be a direct base class 
(25,9): Error! E328: storage class of 'D::a' conflicts with previous declaration 
  'int D::a' defined at: (24,9) 
(25,9): Error! E042: symbol 'D::a' already defined 
  'int D::a' defined at: (24,9) 
(26,9): Error! E261: cannot grant access to 'b' 
(29,9): Error! E262: cannot reduce access to 'a' 
(30,10): Error! E042: symbol 'D::c' already defined 
  'B D::c' defined at: (28,6) 
(40,9): Error! E260: overloaded functions ('f') do not have the same access 
File: ..\diagnose\source\diag0018.c 
(1,3): Error! E252: class declaration has not been seen for '~Q' 
(2,1): Error! E265: destructor must be a non-static member function 
(6,1): Error! E264: user-defined conversion must be a non-static member function 
(11,1): Warning! W744: 'operator --' does not have a return type specified ('int' assumed) 
(11,1): Error! E269: 'operator --' must have either one argument or two arguments 
  argument count is 0 for a non-member function 
(11,1): Error! E278: 'operator --' must take at least one argument of a class/enum or a reference to a class/enum 
(15,25): Warning! W744: 'operator --' does not have a return type specified ('int' assumed) 
(19,32): Error! E269: 'operator ++' must have either one argument or two arguments 
  argument count is 3 since there is an implicit 'this' argument 
(23,1): Warning! W744: 'operator []' does not have a return type specified ('int' assumed) 
(23,1): Error! E266: 'operator []' must be a non-static member function 
(27,28): Warning! W744: 'operator []' does not have a return type specified ('int' assumed) 
(27,28): Error! E268: 'operator []' must have two arguments 
  argument count is 3 since there is an implicit 'this' argument 
(28,23): Warning! W744: 'operator []' does not have a return type specified ('int' assumed) 
(32,1): Warning! W744: 'operator ()' does not have a return type specified ('int' assumed) 
(32,1): Error! E266: 'operator ()' must be a non-static member function 
(36,1): Warning! W744: 'operator =' does not have a return type specified ('int' assumed) 
(36,1): Error! E266: 'operator =' must be a non-static member function 
(40,28): Warning! W744: 'operator =' does not have a return type specified ('int' assumed) 
(40,28): Error! E268: 'operator =' must have two arguments 
  argument count is 3 since there is an implicit 'this' argument 
(41,23): Warning! W744: 'operator =' does not have a return type specified ('int' assumed) 
(45,1): Warning! W744: 'operator +' does not have a return type specified ('int' assumed) 
(45,1): Error! E269: 'operator +' must have either one argument or two arguments 
  argument count is 3 for a non-member function 
(45,1): Error! E278: 'operator +' must take at least one argument of a class/enum or a reference to a class/enum 
(49,28): Warning! W744: 'operator +' does not have a return type specified ('int' assumed) 
(49,28): Error! E269: 'operator +' must have either one argument or two arguments 
  argument count is 3 since there is an implicit 'this' argument 
(50,23): Warning! W744: 'operator +' does not have a return type specified ('int' assumed) 
(54,1): Warning! W744: 'operator ~' does not have a return type specified ('int' assumed) 
(54,1): Error! E267: 'operator ~' must have one argument 
  argument count is 3 for a non-member function 
(54,1): Error! E278: 'operator ~' must take at least one argument of a class/enum or a reference to a class/enum 
(58,1): Warning! W744: 'operator +=' does not have a return type specified ('int' assumed) 
(58,1): Error! E268: 'operator +=' must have two arguments 
  argument count is 3 for a non-member function 
(58,1): Error! E278: 'operator +=' must take at least one argument of a class/enum or a reference to a class/enum 
File: ..\diagnose\source\diag0019.c 
(27,1): Warning! W744: 'operator ->' does not have a return type specified ('int' assumed) 
(27,1): Error! E266: 'operator ->' must be a non-static member function 
(27,1): Warning! W730: return type of 'operator ->' will not allow '->' to be applied 
(32,30): Error! E267: 'operator ->' must have one argument 
  argument count is 2 since there is an implicit 'this' argument 
(34,25): Error! E267: 'operator ->' must have one argument 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?