This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17344] spurious error


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-08 05:31 -------
Note there are more errors on the mainline:
In file included from /home/ivan/ootbc/common/include/bitset.hh:92,
                 from opSet.cc:2:
/home/ivan/ootbc/common/include/row.hh: In member function `size_t row<void>::max_size() 
const':
/home/ivan/ootbc/common/include/row.hh:1311: warning: converting of negative value 
`-0x000000001' to `size_t'
In file included from opSet.cc:3:
/home/ivan/ootbc/common/include/pile.hh: In destructor `pileBase::~pileBase()':
/home/ivan/ootbc/common/include/pile.hh:125: error: ISO C++ says that these are ambiguous, even 
though the worst conversion for the first is better than the worst conversio
n for the second:
/home/ivan/ootbc/common/include/comtype.hh:264: note: candidate 1: bool operator!=(const T*, 
nil_t) [with T = block]
/home/ivan/ootbc/common/include/pile.hh:125: note: candidate 2: operator!=(block*, block*) <built-
in>
/home/ivan/ootbc/common/include/pile.hh:130: error: ISO C++ says that these are ambiguous, even 
though the worst conversion for the first is better than the worst conversio
n for the second:
/home/ivan/ootbc/common/include/comtype.hh:264: note: candidate 1: bool operator!=(const T*, 
nil_t) [with T = block]
/home/ivan/ootbc/common/include/pile.hh:130: note: candidate 2: operator!=(block*, block*) <built-
in>
opSet.cc: At global scope:
opSet.cc:5: error: ISO C++ says that these are ambiguous, even though the worst conversion for the 
first is better than the worst conversion for the second:
opSet.cc:5: note: candidate 1: operator-(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:113: note: candidate 2: T operator-(T, Arg) [with Arg = 
A, T = element<unsigned char>]
opSet.cc:5: error: ISO C++ says that these are ambiguous, even though the worst conversion for the 
first is better than the worst conversion for the second:
opSet.cc:5: note: candidate 1: operator-(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:113: note: candidate 2: T operator-(T, Arg) [with Arg = 
A, T = element<int>]
opSet.cc:5: error: ISO C++ says that these are ambiguous, even though the worst conversion for the 
first is better than the worst conversion for the second:
opSet.cc:5: note: candidate 1: operator-(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:113: note: candidate 2: T operator-(T, Arg) [with Arg = 
A, T = element<signed char>]
/home/ivan/ootbc/common/include/bitset.hh: In instantiation of `bitset<A, B, C>':
opSet.cc:8:   instantiated from here
/home/ivan/ootbc/common/include/bitset.hh:315: error: ISO C++ says that these are ambiguous, 
even though the worst conversion for the first is better than the worst convers
ion for the second:
/home/ivan/ootbc/common/include/bitset.hh:315: note: candidate 1: operator-(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:113: note: candidate 2: T operator-(T, Arg) [with Arg = 
A, T = element<unsigned char>]
/home/ivan/ootbc/common/include/bitset.hh:315: error: ISO C++ says that these are ambiguous, 
even though the worst conversion for the first is better than the worst convers
ion for the second:
/home/ivan/ootbc/common/include/bitset.hh:315: note: candidate 1: operator-(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:113: note: candidate 2: T operator-(T, Arg) [with Arg = 
A, T = element<int>]
/home/ivan/ootbc/common/include/bitset.hh:315: error: ISO C++ says that these are ambiguous, 
even though the worst conversion for the first is better than the worst convers
ion for the second:
/home/ivan/ootbc/common/include/bitset.hh:315: note: candidate 1: operator-(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:113: note: candidate 2: T operator-(T, Arg) [with Arg = 
A, T = element<signed char>]
/home/ivan/ootbc/common/include/bitset.hh:323: error: ISO C++ says that these are ambiguous, 
even though the worst conversion for the first is better than the worst convers
ion for the second:
/home/ivan/ootbc/common/include/bitset.hh:323: note: candidate 1: operator+(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:101: note: candidate 2: T operator+(Arg, const T&) 
[with Arg = A, T = element<unsigned char>]
/home/ivan/ootbc/common/include/bitset.hh:323: error: ISO C++ says that these are ambiguous, 
even though the worst conversion for the first is better than the worst convers
ion for the second:
/home/ivan/ootbc/common/include/bitset.hh:323: note: candidate 1: operator+(int, int) <built-in>
/home/ivan/ootbc/common/include/mixin.hh:101: note: candidate 2: T operator+(Arg, const T&) 
[with Arg = A, T = element<int>]
/home/ivan/ootbc/common/include/bitset.hh:323: error: ISO C++ says that these are ambiguous, 
even though the worst conversion for the first is better than the worst convers
....

Maybe those are errors are related or not.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17344


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]