Issue Details (XML | Word | Printable)

Key: STDCXX-973
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] compilation error on in 17.extensions.cpp

Created: 22/Jun/08 11:21 PM   Updated: 22/Jun/08 11:21 PM
Return to search
Component/s: Tests
Affects Version/s: 4.2.1
Fix Version/s: 4.2.2

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

Environment: HP aCC 3.73

Severity: Compiler Error


 Description  « Hide
The 17.extensions.cpp test fails to compile on the head 4.2.x with the errors below:

See also this post.

aCC -c    -mt -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -AA  +O2  +DD64 +w +W392,655,684,818,819,849   $(TOPDIR)/tests/intro/17.extensions.cpp
Error (future) 229: "$(TOPDIR)/tests/intro/17.extensions.cpp", line 377 # "Ambiguous overloaded function call; a function match was not found that was strictly best for ALL arguments. Two functions that matched best for some arguments (but not all) were "std::istreambuf_iterator<char,std::char_traits<char> > std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char> > >::get(std::istreambuf_iterator<char,std::char_traits<char> >,std::istreambuf_iterator<char,std::char_traits<char> >,std::ios_base &,__rw::__rw_iostate &,long double &) const" ["$(TOPDIR)/include/loc/_num_get.h", line 124] and "std::istreambuf_iterator<char,std::char_traits<char> > std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char> > >::get(std::istreambuf_iterator<char,std::char_traits<char> >,std::istreambuf_iterator<char,std::char_traits<char> >,std::ios_base &,__rw::__rw_iostate &,double &) const" ["$(TOPDIR)/include/loc/_num_get.h", line 116]." Choosing "std::istreambuf_iterator<char,std::char_traits<char> > std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char> > >::get(std::istreambuf_iterator<char,std::char_traits<char> >,std::istreambuf_iterator<char,std::char_traits<char> >,std::ios_base &,__rw::__rw_iostate &,long double &) const" ["$(TOPDIR)/include/loc/_num_get.h", line 124] for resolving ambiguity.
        TEST_GET (short);
        ^^^^^^^^         
Error 437: "$(TOPDIR)/tests/intro/17.extensions.cpp", line 377 # Type mismatch; cannot initialize a 'long double &' with a 'short'. Try changing 'long double &' to 'const long double &' at ["$(TOPDIR)/include/loc/_num_get.h", line 125].
        TEST_GET (short);
        ^^^^^^^^         
Error (future) 229: "$(TOPDIR)/tests/intro/17.extensions.cpp", line 378 # "Ambiguous overloaded function call; a function match was not found that was strictly best for ALL arguments. Two functions that matched best for some arguments (but not all) were "std::istreambuf_iterator<char,std::char_traits<char> > std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char> > >::get(std::istreambuf_iterator<char,std::char_traits<char> >,std::istreambuf_iterator<char,std::char_traits<char> >,std::ios_base &,__rw::__rw_iostate &,long double &) const" ["$(TOPDIR)/include/loc/_num_get.h", line 124] and "std::istreambuf_iterator<char,std::char_traits<char> > std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char> > >::get(std::istreambuf_iterator<char,std::char_traits<char> >,std::istreambuf_iterator<char,std::char_traits<char> >,std::ios_base &,__rw::__rw_iostate &,double &) const" ["$(TOPDIR)/include/loc/_num_get.h", line 116]." Choosing "std::istreambuf_iterator<char,std::char_traits<char> > std::num_get<char,std::istreambuf_iterator<char,std::char_traits<char> > >::get(std::istreambuf_iterator<char,std::char_traits<char> >,std::istreambuf_iterator<char,std::char_traits<char> >,std::ios_base &,__rw::__rw_iostate &,long double &) const" ["$(TOPDIR)/include/loc/_num_get.h", line 124] for resolving ambiguity.
        TEST_GET (int);
        ^^^^^^^^       
Error 437: "$(TOPDIR)/tests/intro/17.extensions.cpp", line 378 # Type mismatch; cannot initialize a 'long double &' with a 'int'. Try changing 'long double &' to 'const long double &' at ["$(TOPDIR)/include/loc/_num_get.h", line 125].
        TEST_GET (int);
        ^^^^^^^^       
Warning:	2 future errors were detected and ignored. Add a '+p' option to detect and fix them before they become fatal errors in a future release. Behavior of this ill-formed program is not guaranteed to match that of a well-formed program
gmake: *** [17.extensions.o] Error 2


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No changes have yet been made on this issue.