public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23273] New: gcc doesn't compile the stl headers
@ 2005-08-07 19:11 jacob dot navia at ants dot com
  2005-08-07 19:12 ` [Bug c++/23273] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 16+ messages in thread
From: jacob dot navia at ants dot com @ 2005-08-07 19:11 UTC (permalink / raw)
  To: gcc-bugs

When compiling the stl headers, the gcc-4.4.4 reports:
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/../../../../include/c++/3.4.4/bits/stl_bvector.h:823:
error: expected unqualified-id before '(' token
In file included from
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/../../../../include/c++/3.4.4/vector:75,
                 from Arena.h:17,
                 from AntsString.h:8,
                 from ErrorHandling.h:6,
                 from aio.cpp:2:
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/../../../../include/c++/3.4.4/bits/vector.tcc:
In member function `void std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer,
std::vector<_Tp, _Alloc> >, size_t, const _Tp&)':
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/../../../../include/c++/3.4.4/bits/vector.tcc:307:
error: expected unqualified-id before '(' token
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/../../../../include/c++/3.4.4/bits/vector.tcc:
In member function `void std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer,
std::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator,
std::forward_iterator_tag)':
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/../../../../include/c++/3.4.4/bits/vector.tcc:384:
error: expected unqualified-id before '(' token
In file included from
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/../../../../include/c++/3.4.4/vector:72,
                 from Arena.h:17,
                 from AntsString.h:8,
                 from AntsSqlServer.h:12,
                 from AntsAuthIdElement.cpp:2:
-------------------------------------------------------------------------
[antslab@ldbuild] /home/antslab/gccobj/bin/g++ -v
Reading specs from
/cdrive/antslab/gccobj/bin/../lib/gcc/x86_64-unknown-linux-gnu/3.4.4/specs
Configured with: ../gcc-3.4.4/configure --prefix=/home/antslab/gccobj
--enable-sjlj-exceptions --enable-languages=c,c++
--with-ld=/home/antslab/gccobj/bin/ld --enable-threads=posix --disable-shared
--with-system-zlib --enable-__cxa_atexit
Thread model: posix
gcc version 3.4.4

-- 
           Summary: gcc doesn't compile the stl headers
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jacob dot navia at ants dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: gcc-4.4.4
  GCC host triplet: gcc-4.4.4
GCC target triplet: amd64


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
@ 2005-08-07 19:12 ` pinskia at gcc dot gnu dot org
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 19:12 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-07 19:12 -------
Add -save-temps and attach the preprocessed source, the .ii file.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
  2005-08-07 19:12 ` [Bug c++/23273] " pinskia at gcc dot gnu dot org
@ 2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 19:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-07 19:37 -------
*** Bug 23277 has been marked as a duplicate of this bug. ***

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (2 preceding siblings ...)
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
@ 2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 19:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-07 19:37 -------
*** Bug 23276 has been marked as a duplicate of this bug. ***

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (3 preceding siblings ...)
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
@ 2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
  2005-08-08 18:45 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 19:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-07 19:37 -------
*** Bug 23274 has been marked as a duplicate of this bug. ***

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
  2005-08-07 19:12 ` [Bug c++/23273] " pinskia at gcc dot gnu dot org
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
@ 2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-07 19:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-07 19:37 -------
*** Bug 23275 has been marked as a duplicate of this bug. ***

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (4 preceding siblings ...)
  2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
@ 2005-08-08 18:45 ` pinskia at gcc dot gnu dot org
  2005-08-22 12:15 ` gcc-bugzilla2 at imperialviolet dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-08 18:45 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (5 preceding siblings ...)
  2005-08-08 18:45 ` pinskia at gcc dot gnu dot org
@ 2005-08-22 12:15 ` gcc-bugzilla2 at imperialviolet dot org
  2005-08-22 13:25 ` gcc-bugzilla2 at imperialviolet dot org
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: gcc-bugzilla2 at imperialviolet dot org @ 2005-08-22 12:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gcc-bugzilla2 at imperialviolet dot org  2005-08-22 12:11 -------
I have the same problem when building Gambit (a Scheme->C compiler). Since the
original reporter doesn't seem to have replied to the request for a -save-temps
file I thought that mine could be of use.

It's tarballed at http://www.imperialviolet.org/binary/gcc-bug-23273.tar.bz2

please email agl at imperialviolet.org with any questions.

Cheers,

% gcc --version                                                                
                                                                               
                 T ~/src/gambc40b14/lib/guide
gcc (GCC) 3.4.2  (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)

g++ -c -pipe -Wall -W -march=pentium2 -O2 -pipe  -DQT_NO_DEBUG
-I/usr/qt/3/mkspecs/linux-g++ -I. -I../../include -I/usr/qt/3/include -o
guideuihighlighterscheme.o guideuihighlighterscheme.cpp -save-temps
g++: warning: -pipe ignored because -save-temps specified
In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/vector:72,
                 from /usr/qt/3/include/qvaluevector.h:46,
                 from guideuihighlighterscheme.h:10,
                 from guideuihighlighterscheme.cpp:8:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h: In
member function `void std::vector<bool,
_Alloc>::_M_insert_range(std::_Bit_iterator, _ForwardIterator, _ForwardIterator,
std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h:522:
error: expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h: In
member function `void std::vector<bool,
_Alloc>::_M_fill_insert(std::_Bit_iterator, size_t, bool)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/stl_bvector.h:823:
error: expected unqualified-id before '(' token
In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/vector:75,
                 from /usr/qt/3/include/qvaluevector.h:46,
                 from guideuihighlighterscheme.h:10,
                 from guideuihighlighterscheme.cpp:8:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc: In member
function `void std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer,
std::vector<_Tp, _Alloc> >, size_t, const _Tp&)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc:307: error:
expected unqualified-id before '(' token
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc: In member
function `void std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer,
std::vector<_Tp, _Alloc> >, _ForwardIterator, _ForwardIterator,
std::forward_iterator_tag)':
/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3/bits/vector.tcc:384: error:
expected unqualified-id before '(' token


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (6 preceding siblings ...)
  2005-08-22 12:15 ` gcc-bugzilla2 at imperialviolet dot org
@ 2005-08-22 13:25 ` gcc-bugzilla2 at imperialviolet dot org
  2005-08-22 14:32 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: gcc-bugzilla2 at imperialviolet dot org @ 2005-08-22 13:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gcc-bugzilla2 at imperialviolet dot org  2005-08-22 13:00 -------
An uncomfortable, but functional, solution this this problem is to replace
std::max with max on each of the erroring lines. Since the STL lives in the std
namespace anyway I think this should work generally.

AGL

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (7 preceding siblings ...)
  2005-08-22 13:25 ` gcc-bugzilla2 at imperialviolet dot org
@ 2005-08-22 14:32 ` pinskia at gcc dot gnu dot org
  2005-08-26 18:36 ` jacob dot navia at ants dot com
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-22 14:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-22 13:35 -------
This is not a bug.  You have a macro max which is defined and so you get:
std::(((size())>(__n))?(size()):(__n)) which is a bug.

It is a bug in your code.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc-bugzilla2 at
                   |                            |imperialviolet dot org
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (8 preceding siblings ...)
  2005-08-22 14:32 ` pinskia at gcc dot gnu dot org
@ 2005-08-26 18:36 ` jacob dot navia at ants dot com
  2005-08-26 18:37   ` Andrew Pinski
  2005-08-26 19:33 ` pinskia at physics dot uc dot edu
                   ` (2 subsequent siblings)
  12 siblings, 1 reply; 16+ messages in thread
From: jacob dot navia at ants dot com @ 2005-08-26 18:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jacob dot navia at ants dot com  2005-08-26 18:31 -------
Subject: RE:  gcc doesn't compile the stl headers

Hi.

You sent me this message:

-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Monday, August 22, 2005 6:36 AM
To: Jacob Navia
Subject: [Bug c++/23273] gcc doesn't compile the stl headers



------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-22 13:35 -------
This is not a bug.  You have a macro max which is defined and so you get:
std::(((size())>(__n))?(size()):(__n)) which is a bug.

It is a bug in your code.

-------------------------------
Why do we have min and max macros?
/*
On Linux and Solaris this isn't allowed:

  int i; float x; min(i,x);

It says that there is no instantiation of min<T,T>() that matches (int,float). Until they fix their type-resolving
mechanism, we have to make-do with macros.
*/
#ifndef min
#define min(a,b)        ((a) < (b) ? (a): (b))
#endif
#ifndef max
#define max(a,b)        ((a) > (b) ? (a): (b))
#endif

OK. Now this work-around works in gcc 3.xxx but not now... sigh.
Can you tell me if the original problem has been fixed?

jacob


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-26 18:36 ` jacob dot navia at ants dot com
@ 2005-08-26 18:37   ` Andrew Pinski
  0 siblings, 0 replies; 16+ messages in thread
From: Andrew Pinski @ 2005-08-26 18:37 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs

> 
> 
> ------- Additional Comments From jacob dot navia at ants dot com  2005-08-26 18:31 -------
> Subject: RE:  gcc doesn't compile the stl headers
> 
> Hi.
> 
> You sent me this message:
> 
> -----Original Message-----
> From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
> Sent: Monday, August 22, 2005 6:36 AM
> To: Jacob Navia
> Subject: [Bug c++/23273] gcc doesn't compile the stl headers
> 
> 
> 
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-22 13:35 -------
> This is not a bug.  You have a macro max which is defined and so you get:
> std::(((size())>(__n))?(size()):(__n)) which is a bug.
> 
> It is a bug in your code.
> 
> -------------------------------
> Why do we have min and max macros?
> /*
> On Linux and Solaris this isn't allowed:
> 
>   int i; float x; min(i,x);
> 
> It says that there is no instantiation of min<T,T>() that matches (int,float). Until they fix their type-resolving
> mechanism, we have to make-do with macros.
> */
> #ifndef min
> #define min(a,b)        ((a) < (b) ? (a): (b))
> #endif
> #ifndef max
> #define max(a,b)        ((a) > (b) ? (a): (b))
> #endif
> 
> OK. Now this work-around works in gcc 3.xxx but not now... sigh.
> Can you tell me if the original problem has been fixed?

The orginal problem is in your code as the standard says min/max are templates of
only one template agrument.  There is nothing which can be fixed in GCC or libstdc++
at all since your code is not valid C++.

-- Pinski


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (9 preceding siblings ...)
  2005-08-26 18:36 ` jacob dot navia at ants dot com
@ 2005-08-26 19:33 ` pinskia at physics dot uc dot edu
  2005-08-29 20:01 ` jacob dot navia at ants dot com
  2005-08-29 20:05 ` pinskia at physics dot uc dot edu
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-08-26 19:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2005-08-26 18:37 -------
Subject: Re:  gcc doesn't compile the stl headers

> 
> 
> ------- Additional Comments From jacob dot navia at ants dot com  2005-08-26 18:31 -------
> Subject: RE:  gcc doesn't compile the stl headers
> 
> Hi.
> 
> You sent me this message:
> 
> -----Original Message-----
> From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
> Sent: Monday, August 22, 2005 6:36 AM
> To: Jacob Navia
> Subject: [Bug c++/23273] gcc doesn't compile the stl headers
> 
> 
> 
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-22 13:35 -------
> This is not a bug.  You have a macro max which is defined and so you get:
> std::(((size())>(__n))?(size()):(__n)) which is a bug.
> 
> It is a bug in your code.
> 
> -------------------------------
> Why do we have min and max macros?
> /*
> On Linux and Solaris this isn't allowed:
> 
>   int i; float x; min(i,x);
> 
> It says that there is no instantiation of min<T,T>() that matches (int,float). Until they fix their type-resolving
> mechanism, we have to make-do with macros.
> */
> #ifndef min
> #define min(a,b)        ((a) < (b) ? (a): (b))
> #endif
> #ifndef max
> #define max(a,b)        ((a) > (b) ? (a): (b))
> #endif
> 
> OK. Now this work-around works in gcc 3.xxx but not now... sigh.
> Can you tell me if the original problem has been fixed?

The orginal problem is in your code as the standard says min/max are templates of
only one template agrument.  There is nothing which can be fixed in GCC or libstdc++
at all since your code is not valid C++.

-- Pinski


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (10 preceding siblings ...)
  2005-08-26 19:33 ` pinskia at physics dot uc dot edu
@ 2005-08-29 20:01 ` jacob dot navia at ants dot com
  2005-08-29 20:01   ` Andrew Pinski
  2005-08-29 20:05 ` pinskia at physics dot uc dot edu
  12 siblings, 1 reply; 16+ messages in thread
From: jacob dot navia at ants dot com @ 2005-08-29 20:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jacob dot navia at ants dot com  2005-08-29 19:58 -------
Subject: RE:  gcc doesn't compile the stl headers

Hi

OK, Since you tell me that is not standard C++, a developer
(Mr Prasad Kommoju) went through all the min/max usage 
in our code and changed them.

After having done all that work, we now find a fresh new
problem. Isn't this fun?

He writes:
"I got internal compiler error as follows:"

-------
/home/jacob/gcc4/bin/g++ -D_SERVER_CPP_FLAGS -D_64BIT -DANTS_ASSERT -I. -I../Win32/include -I../Shared -I../Atomics -DNODEBUG -D_NODEBUG -DNDEBUG -D_NDEBUG -DUNIX_COMPILE -D_REENTRANT -D_REDHAT -m64 -fPIC -fno-omit-frame-pointer -O0 -w -D__
DBL_SO_SPLIT   -I. -I../Win32/include -I../CryptoLibrary -I../VParse -I../VParse/inc -I../Atomics -I../CompilerLibrary -I../Driver/CPThreadLibrary -I../CompilerLibrary -I../avipl  -o Release/AntsAuthIdElement.lo -c AntsAuthIdElement.cpp ./Atomic8Byte.h: In member function 'bool AtomicDouble::SetIfEqual(double, double) volatile':
./Atomic8Byte.h:1075: internal compiler error: in create_tmp_var, at gimplify.c:368
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
-------


OK?

Should we file a new bug report?

Thanks

jacob
-----Original Message-----
From: pinskia at physics dot uc dot edu
[mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Friday, August 26, 2005 11:37 AM
To: Jacob Navia
Subject: [Bug c++/23273] gcc doesn't compile the stl headers



------- Additional Comments From pinskia at physics dot uc dot edu  2005-08-26 18:37 -------
Subject: Re:  gcc doesn't compile the stl headers

> 
> 
> ------- Additional Comments From jacob dot navia at ants dot com  2005-08-26 18:31 -------
> Subject: RE:  gcc doesn't compile the stl headers
> 
> Hi.
> 
> You sent me this message:
> 
> -----Original Message-----
> From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org]
> Sent: Monday, August 22, 2005 6:36 AM
> To: Jacob Navia
> Subject: [Bug c++/23273] gcc doesn't compile the stl headers
> 
> 
> 
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-22 13:35 -------
> This is not a bug.  You have a macro max which is defined and so you get:
> std::(((size())>(__n))?(size()):(__n)) which is a bug.
> 
> It is a bug in your code.
> 
> -------------------------------
> Why do we have min and max macros?
> /*
> On Linux and Solaris this isn't allowed:
> 
>   int i; float x; min(i,x);
> 
> It says that there is no instantiation of min<T,T>() that matches (int,float). Until they fix their type-resolving
> mechanism, we have to make-do with macros.
> */
> #ifndef min
> #define min(a,b)        ((a) < (b) ? (a): (b))
> #endif
> #ifndef max
> #define max(a,b)        ((a) > (b) ? (a): (b))
> #endif
> 
> OK. Now this work-around works in gcc 3.xxx but not now... sigh.
> Can you tell me if the original problem has been fixed?

The orginal problem is in your code as the standard says min/max are templates of
only one template agrument.  There is nothing which can be fixed in GCC or libstdc++
at all since your code is not valid C++.

-- Pinski




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-29 20:01 ` jacob dot navia at ants dot com
@ 2005-08-29 20:01   ` Andrew Pinski
  0 siblings, 0 replies; 16+ messages in thread
From: Andrew Pinski @ 2005-08-29 20:01 UTC (permalink / raw)
  To: gcc-bugzilla; +Cc: gcc-bugs


On Aug 29, 2005, at 3:59 PM, jacob dot navia at ants dot com wrote:
>
> OK?
>
> Should we file a new bug report?

Yes but this is most likely PR 23167.

-- Pinski


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [Bug c++/23273] gcc doesn't compile the stl headers
  2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
                   ` (11 preceding siblings ...)
  2005-08-29 20:01 ` jacob dot navia at ants dot com
@ 2005-08-29 20:05 ` pinskia at physics dot uc dot edu
  12 siblings, 0 replies; 16+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-08-29 20:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at physics dot uc dot edu  2005-08-29 20:01 -------
Subject: Re:  gcc doesn't compile the stl headers


On Aug 29, 2005, at 3:59 PM, jacob dot navia at ants dot com wrote:
>
> OK?
>
> Should we file a new bug report?

Yes but this is most likely PR 23167.

-- Pinski



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23273


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-08-29 20:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-07 19:11 [Bug c++/23273] New: gcc doesn't compile the stl headers jacob dot navia at ants dot com
2005-08-07 19:12 ` [Bug c++/23273] " pinskia at gcc dot gnu dot org
2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
2005-08-07 19:37 ` pinskia at gcc dot gnu dot org
2005-08-08 18:45 ` pinskia at gcc dot gnu dot org
2005-08-22 12:15 ` gcc-bugzilla2 at imperialviolet dot org
2005-08-22 13:25 ` gcc-bugzilla2 at imperialviolet dot org
2005-08-22 14:32 ` pinskia at gcc dot gnu dot org
2005-08-26 18:36 ` jacob dot navia at ants dot com
2005-08-26 18:37   ` Andrew Pinski
2005-08-26 19:33 ` pinskia at physics dot uc dot edu
2005-08-29 20:01 ` jacob dot navia at ants dot com
2005-08-29 20:01   ` Andrew Pinski
2005-08-29 20:05 ` pinskia at physics dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).