You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/06/23 01:21:44 UTC

[jira] Created: (STDCXX-973) [HP aCC] compilation error on in 17.extensions.cpp

[HP aCC] compilation error on in 17.extensions.cpp
--------------------------------------------------

                 Key: STDCXX-973
                 URL: https://issues.apache.org/jira/browse/STDCXX-973
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Tests
    Affects Versions: 4.2.1
         Environment: HP aCC 3.73
            Reporter: Martin Sebor
            Priority: Minor
             Fix For: 4.2.2


The [17.extensions.cpp|http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/tests/intro/17.extensions.cpp?revision=662858&view=markup] test fails to compile on the head 4.2.x with the errors below:

See also this [post|http://markmail.org/message/pf4cehed3tzolyan].

{noformat}
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
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.