--- 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
Priority: P3
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 #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:
: -Wfatal-errors aborts too early
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
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=36659
gcc dot gnu dot org
ReportedBy: carlo at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35405
--- 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
#undef _REENTRANT
#ifdef GCC_BUGFIX
#define _REENTRANT 1
#endif
The drawback of this
--- 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 struct mutex_tct { static a S_mutex; };
template a mutex_tct::S_mutex = {0,1};
template <> a mutex
--- 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=8348&action=view)
Same, but without PCH.
Sorry, the previous one was compiled with pch.
This one is with
--- 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=8345&action=view)
bzip2-ed preprocessed source code.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20350
MED
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/bugzi
--- 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*
--- 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=7400&action=view)
Maximal stripped down test case.
This snippet still shows the same difference.
If the 'friend
--- 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=7399&action=view)
Stripped down test case.
I managed to strip it down to a more reasonable size.
Still not sure
--- 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=7398&action=view)
bzip2-ed preprocessed source code without line numbers (s/^# .*//).
--
http://gcc.gnu.org/b
ecc::bitset_index&, const libecc::bitset_index&)
Attaching pointTest.ii.bz2 in a minute.
--
Summary: Possible regression with error no match for 'operator*'
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
--- Additional Comments From carlo at gcc dot gnu dot org 2004-10-08 13:53 ---
This wording is very boost specific and does not give
a solution for other libraries that need to detect
at prepocessing time whether or not -pthread is
being used.
Consider a library libjohndoe, this library
17 matches
Mail list logo