diag0100.chk
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,048 行 · 第 1/5 页
CHK
1,048 行
File: ..\diagnose\source\diag0100.c
(5,21): Error! E226: function 'foo' is not distinct
'void foo( X1 )' defined at: (4,6)
(27,10): Error! E148: access to private member 'Z2::a' is not allowed
'int Z2<float>::a' defined at: (11,13)
(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'
'S<int> * q' in 'void S<int>::foo( int )' defined at: (57,19)
template class instantiation for 'S<int>' was at: (68,1)
(43,9): Error! E038: expression must be 'pointer to ...'
template class member instantiation was at: (48,1)
operand type is 'int (lvalue)'
File: ..\diagnose\source\diag0101.c
(7,20): Warning! W402: class template 'X2' has already been declared as a friend
(13,24): Error! E363: local class cannot have 'X2' as a friend
(16,1): Warning! W014: no reference to symbol 'LOCAL::f'
'int LOCAL::f' in 'void foo( void )' defined at: (14,13)
(35,1): Warning! W011: all members are private
(29,14): Error! E148: access to private member 'PP::bad' is not allowed
'int PP::bad' defined at: (34,9)
template class instantiation for 'LL<int>' was at: (42,1)
File: ..\diagnose\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
'int XX::bad' defined at: (13,9)
template class member instantiation was at: (18,1)
File: ..\diagnose\source\diag0103.c
(2,6): Error! E457: 'A' was previously declared as a typedef
'A' defined at: (1,13)
(5,13): Error! E457: 'B' was previously declared as a typedef
'B' defined at: (4,13)
(20,14): Error! E458: 'G' was previously declared as a variable/function
'int G' defined at: (19,5)
(23,14): Error! E458: 'H' was previously declared as a variable/function
'int H( int )' defined at: (22,5)
(39,8): Error! E457: 'ST1' was previously declared as a typedef
'ST1' defined in: ..\diagnose\source\diag0103.h(1,13)
(40,15): Error! E457: 'ST2' was previously declared as a typedef
'ST2' defined in: ..\diagnose\source\diag0103.h(2,13)
(41,8): Warning! W480: variable/function has the same name as the class/enum 'CT1'
'CT1' defined in: ..\diagnose\source\diag0103.h(3,8)
(42,15): Warning! W480: variable/function has the same name as the class/enum 'CT2'
'CT2' defined in: ..\diagnose\source\diag0103.h(4,8)
(43,8): Warning! W480: variable/function has the same name as the class/enum 'UT1'
'UT1' defined in: ..\diagnose\source\diag0103.h(5,7)
(44,15): Warning! W480: variable/function has the same name as the class/enum 'UT2'
'UT2' defined in: ..\diagnose\source\diag0103.h(6,7)
(45,11): Warning! W481: class/enum has the same name as the function/variable 'VN1'
'int VN1' defined in: ..\diagnose\source\diag0103.h(7,5)
(46,12): Warning! W481: class/enum has the same name as the function/variable 'VN2'
'int VN2' defined in: ..\diagnose\source\diag0103.h(8,5)
(47,11): Warning! W481: class/enum has the same name as the function/variable 'FN1'
'int FN1( int )' defined in: ..\diagnose\source\diag0103.h(9,5)
(48,12): Warning! W481: class/enum has the same name as the function/variable 'FN2'
'int FN2( int )' defined in: ..\diagnose\source\diag0103.h(10,5)
File: ..\diagnose\source\diag0104.c
(3,5): Error! E456: 'main' cannot be a function template
File: ..\diagnose\source\diag0105.c
(2,6): Error! E080: system dependent test for 386
File: ..\diagnose\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'
'void foo( void )' defined at: (8,17)
(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'
'int a' in 'void f11( void )' defined at: (13,9)
(22,13): Error! E374: object (or object pointer) required to access non-static data member
(30,23): Error! E632: redeclaration of 'X28::~X28' has different attributes
'X28::~X28( void )' defined at: (29,13)
(33,23): Warning! W621: pure virtual destructors must have a definition
(38,8): Error! E431: defining 'x38' is not possible because 'X32' is an abstract class
'X32 x38' defined at: (38,5)
'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
'void X40::foo( void )' defined at: (41,10)
(51,1): Error! E371: constructor is required for a class with a reference member
File: ..\diagnose\source\diag0107.c
(9,14): Error! E042: symbol 'XX::a' already defined
'int XX<int>::a' defined at: (8,13)
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: ..\diagnose\source\diag0108.c
(6,14): Error! E042: symbol 'XX::a' already defined
'int XX<int>::a' defined at: (5,13)
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: ..\diagnose\source\diag0109.c
(4,14): Error! E042: symbol 'XX::a' already defined
'int XX<int * (*)( int * )>::a' defined at: (3,13)
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: ..\diagnose\source\diag0110.c
(4,10): Error! E040: expression for '.' must be a class, struct or union
template function instantiation for 'foo' was at: (7,6)
'void foo( double )' defined at: (7,6)
function template binding of 'foo' was at: (7,6)
template function 'void foo( ? )' defined at: (2,10)
operand type is 'double (lvalue)'
(4,10): Error! E040: expression for '.' must be a class, struct or union
template function instantiation for 'foo' was at: (11,9)
'void foo( int )' defined at: (11,9)
function template binding of 'foo' was at: (11,9)
template function 'void foo( ? )' defined at: (2,10)
operand type is 'int (lvalue)'
File: ..\diagnose\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> (lvalue)"
target conversion type is "void *"
(8,9): Warning! W726: no reference to formal parameter 'x'
'int x' in 'void * S<int>::foo( int )' defined at: (4,24)
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: ..\diagnose\source\diag0112.c
(6,5): Error! E385: attempt to overload function 'S::foo' with a different return type
'int S<int>::foo( int )' defined at: (12,13)
template class member instantiation was at: (15,1)
(6,5): Error! E254: 'S::foo' has not been declared as a member
'void S<int>::foo( int )' defined at: (5,16)
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: ..\diagnose\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
'int S::a' defined at: (6,9)
(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)
File: ..\diagnose\source\diag0114.c
(4,16): Error! E326: defining 'S1::x' is not possible because its type has unknown size
'S2<double> S1<double>::x' defined at: (4,15)
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: ..\diagnose\source\diag0115.c
(16,14): Error! E436: cannot construct an abstract class 'A'
'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'
'A' contains the following pure virtual functions
pure virtual function 'void A::pure( void )' defined at: (13,18)
File: ..\diagnose\source\diag0116.c
(1,27): Error! E197: type cannot be defined in this context
(4,1): Warning! W014: no reference to symbol 'S::mbr'
'int S::mbr' in 'void x1( void )' defined at: (3,24)
(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
(19,5): Warning! W014: no reference to symbol 'D::x'
'int & D::x' in 'void foo( int & )' defined at: (14,16)
template function instantiation for 'foo' was at: (25,9)
'void foo( int & )' defined at: (25,9)
function template binding of 'foo' was at: (25,9)
template function 'void foo( ? & )' defined at: (11,10)
(19,5): Warning! W014: no reference to symbol 'D::x'
'D & D::x' in 'void foo( D & )' defined at: (14,16)
template function instantiation for 'foo' was at: (18,14)
'void foo( D & )' defined at: (18,14)
function template binding of 'foo' was at: (18,14)
template function 'void foo( ? & )' defined at: (11,10)
(19,5): Warning! W014: no reference to symbol 'D::x'
'D & D::x' in 'void foo( D & )' defined at: (14,16)
template function instantiation for 'foo' was at: (18,14)
'void foo( D & )' defined at: (18,14)
function template binding of 'foo' was at: (18,14)
template function 'void foo( ? & )' defined at: (11,10)
(19,5): Warning! W014: no reference to symbol 'D::x'
'D & D::x' in 'void foo( D & )' defined at: (14,16)
template function instantiation for 'foo' was at: (18,14)
'void foo( D & )' defined at: (18,14)
function template binding of 'foo' was at: (18,14)
template function 'void foo( ? & )' defined at: (11,10)
(19,5): Warning! W014: no reference to symbol 'D::x'
'D & D::x' in 'void foo( D & )' defined at: (14,16)
template function instantiation for 'foo' was at: (18,14)
'void foo( D & )' defined at: (18,14)
function template binding of 'foo' was at: (18,14)
template function 'void foo( ? & )' defined at: (11,10)
(19,5): Warning! W014: no reference to symbol 'D::x'
'D & D::x' in 'void foo( D & )' defined at: (14,16)
template function instantiation for 'foo' was at: (18,14)
'void foo( D & )' defined at: (18,14)
function template binding of 'foo' was at: (18,14)
template function 'void foo( ? & )' defined at: (11,10)
(19,5): Warning! W014: no reference to symbol 'D::x'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?