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-11-15 00:09:57


#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@…>):

 Following my last comment, here is are minimal programs to reproduce the
 problem using Comeau C/C++ compiler:

  * This version does '''not''' compile

 {{{
 $ cat bad.cpp
 #include <sys/types.h>
 #include <boost/cstdint.hpp>
 int main()
 {
     boost::int64_t a(0);
     return 0;
 }

 $ como -I/home/mloskot/dev/boost/_svn/trunk bad.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;
             ^

 "bad.cpp", line 5: error: namespace "boost" has no member "int64_t"
       boost::int64_t a(0);
              ^
 }}}

  * This version does compile

 {{{
 $ cat good.cpp
 #include <stdint.h>
 #include <boost/cstdint.hpp>
 int main()
 {
     boost::int64_t a(0);
     return 0;
 }

 $ como -I/home/mloskot/dev/boost/_svn/trunk good.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

 "good.cpp", line 5: warning: variable "a" was declared but never
 referenced
       boost::int64_t a(0);
                      ^
 }}}

 I've also tried to find open GCC bugs related to this issue, but the only
 I found that mentions stdint.h file and preprocessor define ''_ _
 int8_t_defined'' is [http://gcc.gnu.org/bugzilla/show_bug.cgi?id=448 Bug
 448] - <stdint.h>-related issues (C99 issues), however it was reported to
 old GCC 2.96.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3548#comment:4>
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