stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-63) [EDG eccp] error type "long long" is nonstandard in example ostream1.cpp
Date Fri, 04 Nov 2005 18:45:19 GMT
[EDG eccp] error type "long long" is nonstandard in example ostream1.cpp
------------------------------------------------------------------------

         Key: STDCXX-63
         URL: http://issues.apache.org/jira/browse/STDCXX-63
     Project: STDCXX
        Type: Bug
  Components: Examples  
    Versions: 4.1.2    
 Environment: EDG eccp 3.6
    Reporter: Martin Sebor
 Assigned to: Martin Sebor 
    Priority: Minor
     Fix For: 4.1.3


The example program ostream1.cpp fails to compile with EDG eccp 3.6 unless the long long extension
is enabled:

eccp -c -I/build/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG    -D_RWSTD_USE_CONFIG -I/build/sebor/eccp-3.6-11s/include
-I/build/sebor/dev/stdlib/include -I/build/sebor/dev/stdlib/examples/include  -A -x --template_directory=/build/sebor/eccp-3.6-11s/lib
-g  --display_error_number --remarks --diag_suppress 193,236,340,401,261,479,487,678,679,815
 /build/sebor/dev/stdlib/examples/manual/ostream1.cpp
"/build/sebor/dev/stdlib/examples/manual/ostream1.cpp", line 74: error #450-D: 
          the type "long long" is nonstandard
      typedef long long          Int64;
                   ^

"/build/sebor/dev/stdlib/examples/manual/ostream1.cpp", line 75: error #450-D: 
          the type "long long" is nonstandard
      typedef unsigned long long UInt64;
                            ^

"/build/sebor/dev/stdlib/examples/manual/ostream1.cpp", line 81: warning #68-D: 
          integer conversion resulted in a change of sign
      const Int64  i64_min = (UInt64 (-1) >> 1) + 1;
                             ^

"/build/sebor/dev/stdlib/examples/manual/ostream1.cpp", line 127: error #350: 
          more than one operator "<<" matches these operands:
            function "std::basic_ostream<_CharT, _Traits>::operator<<(bool)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(short)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      short) [with _CharT=char,
                      _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(int)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      int) [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(long)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      long) [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(float)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(double)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(long
                      double) [with _CharT=char,
                      _Traits=std::char_traits<char>]"
            operand types are: std::basic_ostream<char,
                      std::char_traits<char>> << const Int64
          << std::dec << std::setw (20) << i64_min << ' '
                                        ^

"/build/sebor/dev/stdlib/examples/manual/ostream1.cpp", line 132: error #350: 
          more than one operator "<<" matches these operands:
            function "std::basic_ostream<_CharT, _Traits>::operator<<(bool)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(short)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      short) [with _CharT=char,
                      _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(int)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      int) [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(long)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      long) [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(float)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(double)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(long
                      double) [with _CharT=char,
                      _Traits=std::char_traits<char>]"
            operand types are: std::basic_ostream<char,
                      std::char_traits<char>> << const Int64
          << std::dec << std::setw (20) << i64_max << ' '
                                        ^

"/build/sebor/dev/stdlib/examples/manual/ostream1.cpp", line 137: error #350: 
          more than one operator "<<" matches these operands:
            function "std::basic_ostream<_CharT, _Traits>::operator<<(bool)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(short)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      short) [with _CharT=char,
                      _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(int)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      int) [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(long)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(unsigned
                      long) [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(float)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(double)
                      [with _CharT=char, _Traits=std::char_traits<char>]"
            function "std::basic_ostream<_CharT, _Traits>::operator<<(long
                      double) [with _CharT=char,
                      _Traits=std::char_traits<char>]"
            operand types are: std::basic_ostream<char,
                      std::char_traits<char>> << const UInt64
          << std::dec << std::setw (20) << u64_max << ' '
                                        ^

5 errors detected in the compilation of "/build/sebor/dev/stdlib/examples/manual/ostream1.cpp".

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message