diag386.chk
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 530 行 · 第 1/2 页
CHK
530 行
File: ..\diagnose\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 )"
(24,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'
'void __brk0( int )' defined at: (29,13)
(34,31): Warning! W211: #pragma attributes for '__brk1' may be inconsistent
'void __pragma("__brk1") __brk1( void )' defined at: (32,13)
(36,35): Error! E609: pragma name 'not' is not defined
(45,22): Warning! W139: enumeration variable is not assigned a constant from its enumeration
(56,10): Error! E042: symbol 'S::f' already defined
'B S::f' defined at: (55,6)
(58,10): Error! E042: symbol 'S::a' already defined
'unsigned S::a : 1' defined at: (57,9)
(60,14): Error! E125: invalid redefinition of the typedef name 'S'
'S' defined at: (54,8)
(64,1): Error! E559: function 'S::S' cannot be defined because it is generated by the compiler
'S::S( void )' defined at: (59,1)
(66,14): Error! E125: invalid redefinition of the typedef name 'E'
'E' defined at: (38,6)
(67,8): Error! E042: symbol 'e1' already defined
'E e1' defined at: (38,10)
(71,7): Error! E029: symbol 'z' has not been declared
(72,10): Error! E042: symbol 'z' already defined
'<error> z' in 'void foo( void )' defined at: (71,7)
(76,15): Error! E385: attempt to overload function 'pfn' with a different return type
'void __pragma("pfn") pfn( ... )' defined at: (75,23)
(79,18): Error! E226: function 'sam' is not distinct
'void sam( int )' defined at: (78,6)
(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
'void d( int [, int ])' defined at: (84,24)
(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: ..\diagnose\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 be 'pointer to ...'
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
(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)
(129,9): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression
(129,10): Warning! W595: construct resolved as an expression
(136,6): Error! E230: expression on left is an array
operand type is 'int *'
(137,5): Error! E230: expression on left is an array
operand type is 'int *'
(138,7): Error! E230: expression on left is an array
left operand type is 'int *'
right operand type is 'void * (lvalue)'
(139,7): Error! E230: expression on left is an array
left operand type is 'int *'
right operand type is 'int'
(140,12): Error! E240: 'enum a' has not been declared
(141,8): Error! E241: 'class 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'
'void xx_BAD( int, int [, int ])' defined at: (161,33)
(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'
'S158 * p' in 'void x173( S158 *, CC * )' defined at: (173,15)
(179,11): Error! E304: 'class S173' has not been defined
(185,8): Error! E356: type cannot be used in this context
(195,21): Error! E400: cannot convert right expression for initialization
source conversion type is "D186 *"
target conversion type is "D186 * *"
(196,12): Error! E452: cannot convert class expression to be copied
'D186::D186( D186 const & )' defined at: (192,1)
cannot convert argument 1 defined at: (196,12)
source conversion type is "V183 *"
target conversion type is "D186 const (lvalue)"
(207,19): Error! E306: cannot convert expression to type of cast
source conversion type is "int"
target conversion type is "T197"
(208,19): Error! E307: conversion ambiguity: [expression] to [cast type]
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! E307: conversion ambiguity: [expression] to [cast type]
source conversion type is "double"
target conversion type is "S193"
(211,1): Warning! W014: no reference to symbol 'y'
'T197 y' in 'void x205( void )' defined at: (207,10)
(211,1): Warning! W014: no reference to symbol 'x'
'S193 x' in 'void x205( void )' defined at: (208,10)
(214,12): Error! E452: cannot convert class expression to be copied
'T197::T197( T197 const & )' defined at: (207,22)
cannot convert argument 1 defined at: (214,12)
source conversion type is "int"
target conversion type is "T197 const (lvalue)"
(218,12): Error! E453: conversion ambiguity: multiple copy constructors
ambiguous function: S193::S193( int ) defined at: (199,5)
ambiguous function: S193::S193( char ) defined at: (200,5)
source conversion type is "double"
target conversion type is "S193"
(223,9): Error! E473: function argument(s) do not match those in prototype
'void f216( D186 & )' defined at: (220,13)
cannot convert argument 1 defined at: (223,11)
source conversion type is "V183 (lvalue)"
target conversion type is "D186 (lvalue)"
(226,14): Error! E353: cannot initialize pointer to non-constant with a pointer to constant
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! E405: cannot return a pointer or reference to a constant object
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,17): Error! E400: cannot convert right expression for initialization
source conversion type is "B240 (lvalue)"
target conversion type is "D244"
(256,14): Error! E468: cannot convert pointer to constant or volatile objects to 'void*'
source conversion type is "D244 const *"
target conversion type is "void *"
(257,14): Error! E468: cannot convert pointer to constant or volatile objects to 'void*'
source conversion type is "D244 volatile *"
target conversion type is "void *"
(258,14): Error! E468: cannot convert pointer to constant or volatile objects to 'void*'
source conversion type is "D244 const volatile *"
target conversion type is "void *"
(261,14): Error! E470: address of function is too large to be converted to 'void*'
source conversion type is "void (__far * )( void )"
target conversion type is "void *"
(262,14): Error! E471: address of data object is too large to be converted to 'void*'
source conversion type is "int __far *"
target conversion type is "void *"
(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): Warning! W367: conditional expression in if statement is always true
(302,9): Error! E486: cannot take address of overloaded function
'void f291( int )' defined at: (296,6)
(304,10): Error! E486: cannot take address of overloaded function
(306,17): 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,15): Error! E497: conversion of const or volatile reference to plain reference
source conversion type is "int const (lvalue)"
target conversion type is "int (lvalue)"
(314,15): Error! E497: conversion of const or volatile reference to plain reference
source conversion type is "int volatile (lvalue)"
target conversion type is "int (lvalue)"
(315,21): Error! E496: conversion of volatile reference to const reference
source conversion type is "int volatile (lvalue)"
target conversion type is "int const (lvalue)"
(317,24): Error! E495: conversion of const reference to volatile 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
'void x320::mf( void )' defined at: (321,10)
(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
'int S327::a' defined at: (332,9)
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
'int S327::f( void )' defined at: (333,9)
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
'int S327::a' defined at: (332,9)
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
'int S327::f( void )' defined at: (333,9)
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
'int S327::a' defined at: (332,9)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?