Issue Details (XML | Word | Printable)

Key: STDCXX-36
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[HP aCC 3.63] <bitset>: Warning 552: Ambiguous overloaded function declaration

Created: 20/Sep/05 08:59 AM   Updated: 02/Dec/08 03:05 AM
Return to search
Component/s: 23. Containers
Affects Version/s: 4.1.2, 4.1.3, 4.1.4, 4.2.0, 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 2h
Original Estimate - 2h
Remaining Estimate: 2h
Remaining Estimate - 2h
Time Spent: Not Specified
Remaining Estimate - 2h

Environment: HP aCC 3, 5

Severity: Compiler Warning


 Description  « Hide
When compiled with HP aCC 3 or 5 (but not 6), the header <bitset> emits the following warnings:

aCC -c -I/build/sebor/dev/stdlib/include/ansi -I/usr/include -D_RWSTDDEBUG -mt -D_RWSTD_USE_CONFIG -I/build/sebor/aCC-3.52-15S/include -I/build/sebor/dev/stdlib/include -Aa +nostl -g +d +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 /build/sebor/dev/stdlib/src/bitset.cpp
Warning 552: "/build/sebor/dev/stdlib/include/bitset", line 435 # Ambiguous
overloaded function declaration; default arguments make this function
indistinguishable from previous one. Clashing function "std::basic_string
std::bitset::to_string(#1,#1) const" was previously declared at
["/build/sebor/dev/stdlib/include/bitset", line 424].
to_string (_CharT __b0 = '0', _CharT __b1 = '1') const {
^^^^^^^^^
Warning 552: "/build/sebor/dev/stdlib/include/bitset", line 441 # Ambiguous
overloaded function declaration; default arguments make this function
indistinguishable from previous one. Clashing function
"std::basic_string<#1,#2,std::allocator> std::bitset::to_string(#1,#1)
const" was previously declared at
["/build/sebor/dev/stdlib/include/bitset", line 435].
to_string (_CharT __b0 = '0', _CharT __b1 = '1') const {
^^^^^^^^^
Warning 552: "/build/sebor/dev/stdlib/include/bitset", line 441 # Ambiguous
overloaded function declaration; default arguments make this function
indistinguishable from previous one. Clashing function "std::basic_string
std::bitset::to_string(#1,#1) const" was previously declared at
["/build/sebor/dev/stdlib/include/bitset", line 424].
to_string (_CharT __b0 = '0', _CharT __b1 = '1') const {
^^^^^^^^^
Warning 552: "/build/sebor/dev/stdlib/include/bitset", line 447 # Ambiguous
overloaded function declaration; default arguments make this function
indistinguishable from previous one. Clashing function
"std::basic_string<#1,std::char_traits,std::allocator>
std::bitset::to_string(#1,#1) const" was previously declared at
["/build/sebor/dev/stdlib/include/bitset", line 441].
to_string (char __b0 = '0', char __b1 = '1') const {
^^^^^^^^^
Warning 552: "/build/sebor/dev/stdlib/include/bitset", line 447 # Ambiguous
overloaded function declaration; default arguments make this function
indistinguishable from previous one. Clashing function
"std::basic_string<#1,#2,std::allocator> std::bitset::to_string(#1,#1)
const" was previously declared at
["/build/sebor/dev/stdlib/include/bitset", line 435].
to_string (char __b0 = '0', char __b1 = '1') const {
^^^^^^^^^
Warning 552: "/build/sebor/dev/stdlib/include/bitset", line 447 # Ambiguous
overloaded function declaration; default arguments make this function
indistinguishable from previous one. Clashing function "std::basic_string
std::bitset::to_string(#1,#1) const" was previously declared at
["/build/sebor/dev/stdlib/include/bitset", line 424].
to_string (char __b0 = '0', char __b1 = '1') const {
^^^^^^^^^



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 20/May/08 07:47 PM
This seems to be a problem only with aCC 3.63 but not with 3.73. Let me see if I can work around it (or silence it using a #pragma diag_suppress if aCC 3 has it) for 4.2.2.