diag386.chk

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

CHK
548
字号
File: source\diag0077.c
(22,17): Error! E541: pointers to class members reference different object types
  source conversion type is 'int stdcall (x379::S::* )( int )'
  target conversion type is 'int (x379::S::* )( int )'
(30,26): Error! E607: #pragma aux must reference a "C" linkage function '__brk0'
  definition: 'void __brk0( int )'
(34,31): Warning! W211: #pragma attributes for '__brk1' may be inconsistent
  definition: 'void __pragma("__brk1") __brk1( void )'
(36,35): Error! E609: pragma name 'not' is not defined
(45,22): Warning! W139: enumeration variable is not assigned a constant from its enumeration
  source conversion type is 'int'
  target conversion type is 'E'
(56,10): Error! E042: symbol 'S::f' already defined
  definition: 'B S::f'
(58,10): Error! E042: symbol 'S::a' already defined
  definition: 'unsigned S::a : 1'
(60,14): Error! E125: invalid redefinition of the typedef name 'S'
  definition: 'S'
(64,1): Error! E559: function 'S::S' cannot be defined because it is generated by the compiler
  definition: 'S::S( void )'
(66,14): Error! E125: invalid redefinition of the typedef name 'E'
  definition: 'E'
(67,8): Error! E042: symbol 'e1' already defined
  definition: 'E e1'
(71,7): Error! E029: symbol 'z' has not been declared
(72,10): Error! E042: symbol 'z' already defined
  definition: '<error> z' in 'void foo( void )'
(76,15): Error! E385: attempt to overload function 'pfn' with a different return type
  definition: 'void __pragma("pfn") pfn( ... )'
(79,18): Error! E226: function 'sam' is not distinct
  definition: 'void sam( int )'
(82,32): Error! E273: the first argument of 'operator new' must be of type size_t
(82,32): Error! E226: function 'operator new' is not distinct
(85,27): Warning! W249: using default arguments would be overload ambiguous with 'd' using default arguments
  definition: 'void d( int [, int ])'
(92,23): Error! E224: 'fn' is a variable of type void
(92,23): Error! E258: cannot declare both a function and variable of the same name ('fn')
(92,23): Error! E006: syntax error; probable cause: missing ';'
File: source\diag0080.c
(25,7): Error! E150: operation does not allow both operands to be pointers
  left operand type is 'char * (lvalue)'
  right operand type is 'char * (lvalue)'
(26,5): Error! E151: operand is neither a pointer nor an arithmetic type
  operand type is 'S (lvalue)'
(27,7): Error! E152: left operand is neither a pointer nor an arithmetic type
  left operand type is 'S (lvalue)'
  right operand type is 'int'
(28,7): Error! E153: right operand is neither a pointer nor an arithmetic type
  left operand type is 'int'
  right operand type is 'S (lvalue)'
(29,12): Error! E154: cannot subtract a pointer from an arithmetic operand
  left operand type is 'int'
  right operand type is 'char * (lvalue)'
(30,7): Error! E159: cannot assign a pointer value to an arithmetic item
  left operand type is 'int (lvalue)'
  right operand type is 'char * (lvalue)'
(31,11): Error! E155: left expression must be arithmetic
  left operand type is 'S (lvalue)'
  right operand type is 'int'
(32,11): Error! E156: right expression must be arithmetic
  left operand type is 'int'
  right operand type is 'S (lvalue)'
(33,11): Error! E157: left expression must be integral
  left operand type is 'S (lvalue)'
  right operand type is 'int'
(34,11): Error! E158: right expression must be integral
  left operand type is 'int'
  right operand type is 'S (lvalue)'
(35,5): Error! E038: expression must have pointer type
  operand type is 'S (lvalue)'
(36,26): Error! E164: first operand is not a class, struct or union
(37,8): Error! E166: cannot convert right pointer to type of left operand
  source conversion type is 'S2 *'
  target conversion type is 'S1 *'
(38,7): Error! E167: left operand must be an lvalue
(39,15): Error! E167: left operand must be an lvalue
(40,25): Error! E187: 'offsetof' is not allowed for a bit-field
(41,25): Error! E217: 'offsetof' is not allowed for a static member
(42,25): Error! E380: 'offsetof' is not allowed for a function
(43,25): Error! E381: 'offsetof' is not allowed for an enumeration
(44,26): Error! E383: 'offsetof' is not allowed for an undefined type
(45,19): Error! E191: expression must be a pointer or a zero constant
  expression type is 'int (lvalue)'
(46,9): Error! E195: 'sizeof' is not allowed for a function
(47,17): Error! E727: cannot dereference a pointer to void
  operand type is 'void *'
(48,7): Error! E192: left expression pointer type cannot be incremented or decremented
  left operand type is 'void (* )( void ) (lvalue)'
  right operand type is 'int'
(49,6): Error! E193: right expression pointer type cannot be incremented or decremented
  left operand type is 'int'
  right operand type is 'void * (lvalue)'
(50,5): Error! E194: expression pointer type cannot be incremented or decremented
  operand type is 'void * (lvalue)'
(64,12): Error! E152: left operand is neither a pointer nor an arithmetic type
  left operand type is 'int RFG::* (lvalue)'
  right operand type is 'int RFG::* (lvalue)'
(68,12): Error! E152: left operand is neither a pointer nor an arithmetic type
  left operand type is 'int (RFG::* )( void ) (lvalue)'
  right operand type is 'int (RFG::* )( void ) (lvalue)'
(76,5): Warning! W203: declaration statement follows a switch statement
(78,5): Warning! W201: declaration statement follows an if statement
(79,9): Warning! W128: initializer for variable 'z' cannot be bypassed
  definition: 'int z' in 'void x72( void )'
(79,15): Error! E042: symbol 'z' already defined
  definition: 'int z' in 'void x72( void )'
(80,5): Warning! W202: declaration statement follows an else statement
(83,5): Warning! W207: declaration statement cannot follow a for statement
(85,5): Warning! W205: declaration statement cannot follow a while statement
(87,5): Warning! W206: declaration statement cannot follow a do statement
(90,16): Error! E200: duplicate case value '1' after conversion to type of switch expression
  previous case label defined at: (89,16)
(97,10): Error! E204: 'this' pointer is not defined
(101,17): Error! E210: returning reference to function argument or to auto or register variable
(116,16): Error! E208: pointer to virtual base class converted to pointer to derived class
  source conversion type is 'VV *'
  target conversion type is 'CC *'
(120,1): Error! E212: function arguments cannot be of type void
(125,13): Error! E215: no declared 'operator new' has arguments that match
  rejected function: void * CC::operator new( unsigned, char ) defined at: (107,11)
  rejected function: void * CC::operator new( unsigned, signed char ) defined at: (108,11)
(126,23): Error! E223: cannot initialize array with 'operator new'
(127,13): Error! E228: declared 'operator new' is ambiguous for arguments used
  ambiguous function: void * CC::operator new( unsigned, char ) defined at: (107,11)
  ambiguous function: void * CC::operator new( unsigned, signed char ) defined at: (108,11)
(136,6): Error! E230: expression on left is an array
  operand type is 'int [10] (lvalue)'
(137,5): Error! E230: expression on left is an array
  operand type is 'int [10] (lvalue)'
(138,7): Error! E230: expression on left is an array
  left operand type is 'int [10] (lvalue)'
  right operand type is 'void * (lvalue)'
(139,7): Error! E230: expression on left is an array
  left operand type is 'int [10] (lvalue)'
  right operand type is 'int'
(140,12): Error! E240: enum 'a' has not been declared
(141,8): Error! E241: class or namespace 'a' has not been declared
(141,8): Error! E029: symbol 't' has not been declared
(141,11): Error! E029: symbol 'q' has not been declared
(144,35): Error! E243: default arguments are not part of a function's type
(151,8): Error! E569: left expression is not a pointer to a volatile object
  left operand type is 'void * (lvalue)'
  right operand type is 'void volatile *'
(152,8): Error! E246: left expression is not a pointer to a constant object
  left operand type is 'void * (lvalue)'
  right operand type is 'void const *'
(161,33): Error! E250: missing default argument for 'xx_BAD'
  definition: 'void xx_BAD( int, int [, int ])'
(170,18): Error! E814: user-defined conversion is ambiguous
  ambiguous function: S158::operator int () defined at: (164,5)
  ambiguous function: S158::S158( int ) defined at: (163,5)
(171,1): Warning! W726: no reference to formal parameter 'b'
  definition: 'int b' in 'S158 x168( int, int, S158 )'
(175,7): Error! E302: cannot assign right expression to element on left
  source conversion type is 'CC (lvalue)'
  target conversion type is 'int'
(176,1): Warning! W726: no reference to formal parameter 'p'
  definition: 'S158 * p' in 'void x173( S158 *, CC * )'
(179,11): Error! E304: class 'S173' has not been defined
(185,8): Error! E356: type cannot be used in this context
(195,14): Error! E400: cannot convert right expression for initialization
  source conversion type is 'D186 *'
  target conversion type is 'D186 * *'
(196,12): Error! E324: conversion of return value is impossible
  'D186' defined at: (190,16)
  source conversion type is 'V183 * (lvalue)'
  target conversion type is 'D186'
(207,19): Error! E306: cannot convert expression to type of cast
  source conversion type is 'int'
  target conversion type is 'T197'
(208,19): Error! E303: constructor is ambiguous for operands used
  ambiguous function: S193::S193( char ) defined at: (200,5)
  ambiguous function: S193::S193( int ) defined at: (199,5)
  source conversion type is 'double'
  target conversion type is 'S193'
(209,14): Error! E306: cannot convert expression to type of cast
  source conversion type is 'int'
  target conversion type is 'T197'
(210,14): Error! E303: constructor is ambiguous for operands used
  ambiguous function: S193::S193( char ) defined at: (200,5)
  ambiguous function: S193::S193( int ) defined at: (199,5)
  source conversion type is 'double'
  target conversion type is 'S193'
(214,12): Error! E324: conversion of return value is impossible
  'T197' defined at: (202,8)
  source conversion type is 'int'
  target conversion type is 'T197'
(218,12): Error! E814: user-defined conversion is ambiguous
  'S193' defined at: (198,8)
  ambiguous function: S193::S193( char ) defined at: (200,5)
  ambiguous function: S193::S193( int ) defined at: (199,5)
  source conversion type is 'double'
  target conversion type is 'S193'
(223,9): Error! E473: function argument(s) do not match those in prototype
  definition: 'void f216( D186 & )'
  cannot convert argument 1 defined at: (223,11)
  source conversion type is 'V183 (lvalue)'
  target conversion type is 'D186 (lvalue)'
(226,12): Error! E468: cannot convert pointer to constant or volatile objects to pointer to void
  source conversion type is 'void const *'
  target conversion type is 'void *'
(232,15): Error! E375: user-defined conversion has not been declared
(236,12): Error! E324: conversion of return value is impossible
  source conversion type is 'int const *'
  target conversion type is 'int *'
(241,12): Error! E210: returning reference to function argument or to auto or register variable
(243,27): Warning! W442: modifier has been repeated
  repeated modifier is '__export'
(250,10): Error! E400: cannot convert right expression for initialization
  source conversion type is 'B240 (lvalue)'
  target conversion type is 'D244'
(256,12): Error! E468: cannot convert pointer to constant or volatile objects to pointer to void
  source conversion type is 'D244 const *'
  target conversion type is 'void *'
(257,12): Error! E468: cannot convert pointer to constant or volatile objects to pointer to void
  source conversion type is 'D244 volatile *'
  target conversion type is 'void *'
(258,12): Error! E468: cannot convert pointer to constant or volatile objects to pointer to void
  source conversion type is 'D244 const volatile *'
  target conversion type is 'void *'
(261,12): Warning! W005: pointer or reference truncated
(262,12): Warning! W005: pointer or reference truncated
(270,10): Error! E293: overloaded operator is ambiguous for operands used
  ambiguous function: void S259::operator =( char ) defined at: (264,10)
  ambiguous function: void S259::operator =( int ) defined at: (265,10)
(276,11): Error! E374: object (or object pointer) required to access non-static data member
(300,9): Error! E486: cannot take address of overloaded function
(302,10): Error! E486: cannot take address of overloaded function
(304,10): Error! E486: cannot take address of overloaded function
(306,9): Error! E486: cannot take address of overloaded function
(308,14): Error! E487: cannot use address of overloaded function as a variable argument
(309,14): Error! E487: cannot use address of overloaded function as a variable argument
(313,13): Error! E819: conversion of const reference to non-const reference
  source conversion type is 'int const (lvalue)'
  target conversion type is 'int (lvalue)'
(314,13): Error! E820: conversion of volatile reference to non-volatile reference
  source conversion type is 'int volatile (lvalue)'
  target conversion type is 'int (lvalue)'
(315,19): Error! E820: conversion of volatile reference to non-volatile reference
  source conversion type is 'int volatile (lvalue)'
  target conversion type is 'int const (lvalue)'
(317,22): Error! E819: conversion of const reference to non-const reference
  source conversion type is 'int const (lvalue)'
  target conversion type is 'int volatile (lvalue)'
(326,15): Error! E499: object (or object pointer) required to access non-static member function
  definition: 'void x320::mf( void )'
(327,13): Error! E374: object (or object pointer) required to access non-static data member
(339,24): Error! E147: access to 'S327::a' is not allowed because it is ambiguous
  definition: 'int S327::a'
  source conversion type is 'int S327::*'
  target conversion type is 'int A332::*'
(340,28): Error! E147: access to 'S327::f' is not allowed because it is ambiguous
  definition: 'int S327::f( void )'
  source conversion type is 'int (S327::* )( void )'
  target conversion type is 'int (A332::* )( void )'
(343,28): Error! E547: cannot access 'S327::a' through a private base class
  definition: 'int S327::a'
  source conversion type is 'int S327::*'
  target conversion type is 'int PRI335::*'
(344,32): Error! E547: cannot access 'S327::f' through a private base class
  definition: 'int S327::f( void )'
  source conversion type is 'int (S327::* )( void )'
  target conversion type is 'int (PRI335::* )( void )'
(347,28): Error! E548: cannot access 'S327::a' through a protected base class
  definition: 'int S327::a'
  source conversion type is 'int S327::*'
  target conversion type is 'int PRO338::*'
(348,32): Error! E548: cannot access 'S327::f' through a protected base class
  definition: 'int S327::f( void )'
  source conversion type is 'int (S327::* )( void )'
  target conversion type is 'int (PRO338::* )( void )'
(351,24): Error! E507: class for target operand is not derived from class for source operand
  source conversion type is 'int S327::*'
  target conversion type is 'int S341::*'

⌨️ 快捷键说明

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