stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-807) [Sun C++] nomatchoverin error on operator%(gslice_array) in 26.valarray.binary.stdcxx-237.cpp
Date Sun, 30 Mar 2008 20:12:25 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12583480#action_12583480
] 

Martin Sebor commented on STDCXX-807:
-------------------------------------

The same program fails to compile with the native C++ Standard Library (stdlib 2.1.1), or
with STLport:
{noformat}
$ cat t.cpp && CC t.cpp || CC -V -library=stlport4 t.cpp
#include <cassert>
#include <valarray>

int main()
{
    std::valarray<int> ia;
    std::gslice        gs;

    std::valarray<int> res = std::operator%<int>(ia [gs], ia [gs]);

    assert (0 == res.size ());

    return 0;
} 

"t.cpp", line 9: Error: Could not find a match for std::operator%<std::T>(std::gslice_array<int>,
std::gslice_array<int>) needed in main().
1 Error(s) detected.
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
ccfe: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
"t.cpp", line 9: Error: Could not find a match for std::operator%<std::_Tp>(std::gslice_array<int>,
std::gslice_array<int>) needed in main().
1 Error(s) detected.
{noformat}

> [Sun C++] nomatchoverin error on operator%(gslice_array) in 26.valarray.binary.stdcxx-237.cpp
> ---------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-807
>                 URL: https://issues.apache.org/jira/browse/STDCXX-807
>             Project: C++ Standard Library
>          Issue Type: Bug
>    Affects Versions: 4.2.0
>            Reporter: Martin Sebor
>            Priority: Minor
>             Fix For: 4.2.1
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> The regression test [26.valarray.binary.stdcxx-237.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/regress/26.valarray.binary.stdcxx-237.cpp]
for STDCXX-237 fails to compile with all tested versions of Sun C++ with an error like the
one below (copied from a Sun C++ 5.9 build log). Suspect a compiler bug.
> {noformat}
> CC -c  -I$(TOPDIR)/include -I$(BUILDDIR)/include -I$(TOPDIR)/tests/include  -library=%none
-O  -m32 +w -errtags -erroff=hidef   $(TOPDIR)/tests/regress/26.valarray.binary.stdcxx-237.cpp
> "$(TOPDIR)/tests/regress/26.valarray.binary.stdcxx-237.cpp", line 37: Error, nomatchoverin:
Could not find a match for std::operator%<std::_TypeT>(std::gslice_array<int>,
std::gslice_array<int>) needed in main().
> 1 Error(s) detected.
> {noformat}

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


Mime
View raw message