Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-redhat-linux-gnu
http://gcc.gnu.org/bugzilla
--- Additional Comments From carlo at gcc dot gnu dot org 2005-03-06 22:33
---
Created an attachment (id=8345)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8345action=view)
bzip2-ed preprocessed source code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20350
--- Additional Comments From carlo at gcc dot gnu dot org 2005-03-06 23:20
---
Created an attachment (id=8348)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8348action=view)
Same, but without PCH.
Sorry, the previous one was compiled with pch.
This one is without PCH
--- Additional Comments From carlo at gcc dot gnu dot org 2005-05-31 02:33
---
If you remove the 'extern', the compiler still crashes:
struct a { int i, j; };
template int i struct mutex_tct { static a S_mutex; };
template int i a mutex_tcti::S_mutex = {0,1};
template a mutex_tct0
--- Comment #38 from carlo at gcc dot gnu dot org 2005-11-29 16:05 ---
That never works because it always defines _REENTRANT.
You probably mean:
#ifdef _REENTRANT
#define GCC_BUGFIX 1
#endif
#include iostream
#undef _REENTRANT
#ifdef GCC_BUGFIX
#define _REENTRANT 1
#endif
The drawback
: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: i686-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18110
--- Additional Comments From carlo at gcc dot gnu dot org 2004-10-22 13:56 ---
Created an attachment (id=7398)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7398action=view)
bzip2-ed preprocessed source code without line numbers (s/^# .*//).
--
http://gcc.gnu.org/bugzilla
--- Additional Comments From carlo at gcc dot gnu dot org 2004-10-22 15:01 ---
Created an attachment (id=7399)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7399action=view)
Stripped down test case.
I managed to strip it down to a more reasonable size.
Still not sure what is going
--- Additional Comments From carlo at gcc dot gnu dot org 2004-10-22 15:32 ---
Created an attachment (id=7400)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7400action=view)
Maximal stripped down test case.
This snippet still shows the same difference.
If the 'friend' is removed
--- Additional Comments From carlo at gcc dot gnu dot org 2004-10-22 15:39 ---
Ok, thanks Volker. Our last posted crossed, sorry.
I'll close the PR because I suppose you are right.
I want my library to accept (a + b) * c however,
so I guess I'd have to add new operator* prototypes
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37773
--- Comment #1 from carlo at gcc dot gnu dot org 2008-10-08 16:48 ---
Here's another one:
../cwchessboard/PgnDatabase.cc:65: error: no matching function for call to
âutil::MemoryBlockList::append(gssize)â
../cwchessboard/MemoryBlockList.h:232: note: candidates are: void
util
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37810
--- Comment #4 from carlo at gcc dot gnu dot org 2008-10-12 15:32 ---
Note that the original code was:
A operator++(void)
{
++n;
if (__builtin_expect(n == m, false))
g();
return *this;
}
but g++ fails to optimize that by decrementing m outside
the loop (so I'm
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405
: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36659
16 matches
Mail list logo