Re: [Boost-bugs] [Boost C++ Libraries] #3548: Comeau C++ reports global scope has no int64_t

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3548: Comeau C++ reports global scope has no int64_t
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-25 12:37:11


#3548: Comeau C++ reports global scope has no int64_t
------------------------------------------+---------------------------------
 Reporter: mloskot <mateusz@…> | Owner: dlwalker
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: integer
  Version: Boost Development Trunk | Severity: Problem
 Keywords: comeau,como |
------------------------------------------+---------------------------------

Comment(by mloskot <mateusz@…>):

 I think I have managed to reproduce the problem with minimal program. I'm
 not sure where is the problem, either in Boost.Integer or
 [http://www.comeaucomputing.com/libcomo/36.html libcomo36] I use with my
 installation of Comeau C/C++ compiler.

  * Simple test which '''do not''' compile

 {{{
 $ cat cstdint.cpp
 #include <iostream>
 #include <boost/cstdint.hpp>
 int main()
 {
     boost::int64_t i64 = -2;
     boost::uint64_t ui64 = 2;
     boost::uint64_t d = ui64 - i64;
     std::cout << d << std::endl;
     return 0;
 }

 $ como -I/home/mloskot/dev/boost/_svn/trunk cstdint.cpp
 Comeau C/C++ 4.3.10.1 (May 7 2008 12:23:21) for LINUX_INTEL_ELF_Beta
 Copyright 1988-2008 Comeau Computing. All rights reserved.
 MODE:non-strict warnings C++ noC++0x_extensions

 "/home/mloskot/dev/boost/_svn/trunk/boost/cstdint.hpp", line 111: error:
 the
           global scope has no "int64_t"
     using ::int64_t;
             ^

 "cstdint.cpp", line 5: error: namespace "boost" has no member "int64_t"
       boost::int64_t i64 = -2;
              ^

 2 errors detected in the compilation of "cstdint.cpp".
 }}}

  * The same simple test but with ''#include'' directives reordered and now
 it '''does''' compile

 {{{
 $ cat cstdint.cpp
 #include <boost/cstdint.hpp>
 #include <iostream>
 int main()
 {
     boost::int64_t i64 = -2;
     boost::uint64_t ui64 = 2;
     boost::uint64_t d = ui64 - i64;
     std::cout << d << std::endl;
     return 0;
 }

 $ como -I/home/mloskot/dev/boost/_svn/trunk cstdint.cpp
 Comeau C/C++ 4.3.10.1 (May 7 2008 12:23:21) for LINUX_INTEL_ELF_Beta
 Copyright 1988-2008 Comeau Computing. All rights reserved.
 MODE:non-strict warnings C++ noC++0x_extensions

 $ ./a.out
 4
 }}}

 I'd appreciate if somebody could confirm if this is Boost problem or not.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3548#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC