[Bug c++/44311] New: no error with switch over enum class and integer case

2010-05-28 Thread joerg dot richter at pdv-fs dot de
Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla

[Bug driver/43970] New: configure --with-local-prefix=no does nothing

2010-05-03 Thread joerg dot richter at pdv-fs dot de
: driver AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43970

[Bug c++/43932] New: conditional operator can't convert 0 to pointer

2010-04-29 Thread joerg dot richter at pdv-fs dot de
convert 0 to pointer Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http

[Bug c++/43932] conditional operator can't convert 0 to pointer

2010-04-29 Thread joerg dot richter at pdv-fs dot de
--- Comment #2 from joerg dot richter at pdv-fs dot de 2010-04-29 12:54 --- But throw can be part of ?: operator: $ cat t.cc int func( bool b ) { return b ? 0 : throw 5; } $ g++ -c t.cc works -- joerg dot richter at pdv-fs dot de changed: What|Removed

[Bug libstdc++/40925] [c++0x] std::pairT*,U* constructor doesn't accept (0, 0)

2009-09-18 Thread joerg dot richter at pdv-fs dot de
--- Comment #5 from joerg dot richter at pdv-fs dot de 2009-09-18 13:47 --- I found Doug Gregors workaround for this pair problem: http://gcc.gnu.org/ml/libstdc++/2008-10/msg00080.html I wonder why it was reverted 9 days later? I couldn't find any discussion on gcc-patches nor

[Bug c++/41373] New: attribute error and warning dont show the instantiation stack

2009-09-16 Thread joerg dot richter at pdv-fs dot de
dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41373

[Bug libstdc++/32354] libstdc++.so.6 missing RPATH

2009-07-15 Thread joerg dot richter at pdv-fs dot de
--- Comment #6 from joerg dot richter at pdv-fs dot de 2009-07-15 13:15 --- I stumpled across the same problem recently. Executable references both libstdc++.so and libgcc_s.so. libstdc++.so references libgcc_s.so. Both executable dependencies will be correctly resolved (due to RPATH

[Bug libstdc++/36363] New: set_union and _GLIBCXX_DEBUG does not compile

2008-05-29 Thread joerg dot richter at pdv-fs dot de
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36363

[Bug other/36368] New: Fixincludes corrupts sysmacros.h

2008-05-29 Thread joerg dot richter at pdv-fs dot de
Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36368

[Bug other/36368] Fixincludes corrupts sysmacros.h

2008-05-29 Thread joerg dot richter at pdv-fs dot de
--- Comment #2 from joerg dot richter at pdv-fs dot de 2008-05-29 12:21 --- Seems I've used gcc on a machine with a newer libc than it was built on. Sorry for the noise. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36368

[Bug c++/36372] New: printf format and templates doesn't work anymore

2008-05-29 Thread joerg dot richter at pdv-fs dot de
Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36372

[Bug c++/35398] New: unable to take address of template function

2008-02-28 Thread joerg dot richter at pdv-fs dot de
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35398

[Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'

2007-07-05 Thread joerg dot richter at pdv-fs dot de
--- Comment #12 from joerg dot richter at pdv-fs dot de 2007-07-05 11:17 --- Of course, you are right. :) Just want to confirm, that all s,g,g, and s,^,, and b seem to work fine with AIX-sed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31957

[Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'

2007-07-05 Thread joerg dot richter at pdv-fs dot de
--- Comment #9 from joerg dot richter at pdv-fs dot de 2007-07-05 11:00 --- I think the last g in 's,g,g,g' is the important one. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31957

[Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'

2007-07-04 Thread joerg dot richter at pdv-fs dot de
--- Comment #4 from joerg dot richter at pdv-fs dot de 2007-07-04 19:48 --- Any chance that this gets fixed with 4.2.1? This is the only thing on AIX that prevents an unpatched bootstrap. Or perhaps its only missing documentation that GNU sed must be used. -- http://gcc.gnu.org

[Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'

2007-06-07 Thread joerg dot richter at pdv-fs dot de
--- Comment #3 from joerg dot richter at pdv-fs dot de 2007-06-07 10:03 --- Well, $ which sed /usr/bin/sed $ /usr/bin/sed -e '' sed: 0602-429 No editing script was provided. Usage: sed [-n] Script [File ...] sed [-n] [-e Script] ... [-f Script_file] ... [File ...] Can

[Bug libstdc++/31957] Build of compiler fails with 'error: #endif without #if'

2007-05-30 Thread joerg dot richter at pdv-fs dot de
--- Comment #1 from joerg dot richter at pdv-fs dot de 2007-05-30 08:47 --- AIX/sed doesn't allow sed -e ''. Can't currently attach patches. Here is it inline: --- libstdc++-v3/include/Makefile.in.old2007-05-30 10:03:19.0 +0200 +++ libstdc++-v3/include/Makefile.in

[Bug bootstrap/31957] New: Build of compiler fails with 'error: #endif without #if'

2007-05-16 Thread joerg dot richter at pdv-fs dot de
org ReportedBy: joerg dot richter at pdv-fs dot de GCC build triplet: powerpc-ibm-aix5.2.0.0 GCC host triplet: powerpc-ibm-aix5.2.0.0 GCC target triplet: powerpc-ibm-aix5.2.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31957

[Bug c/31695] New: __builtin_ctzll slower than 2*__builtin_ctz

2007-04-25 Thread joerg dot richter at pdv-fs dot de
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31695

[Bug c++/28093] New: Wrong overload resolution with templates and namespaces

2006-06-20 Thread joerg dot richter at pdv-fs dot de
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28093

[Bug c++/28025] New: multiple template friend compile error

2006-06-14 Thread joerg dot richter at pdv-fs dot de
Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla

[Bug c++/21264] duplicate symbol warnings for complex template class

2006-05-31 Thread joerg dot richter at pdv-fs dot de
--- Comment #4 from joerg dot richter at pdv-fs dot de 2006-05-31 07:21 --- I can't see the problem with 4.1.1. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21264

[Bug c++/25973] [4.0/4.1/4.2 Regression] Wrong warning: control reaches end of non-void function

2006-05-30 Thread joerg dot richter at pdv-fs dot de
--- Comment #4 from joerg dot richter at pdv-fs dot de 2006-05-30 09:43 --- Before I file a new bug, here is another testcase: struct Block { public: Block(); ~Block(); }; bool func( bool bar ) { Block block; bool foo = false; if( !foo || bar ) do { return true

[Bug c++/27791] New: assert() without -ansi doesnt print the failing condition

2006-05-29 Thread joerg dot richter at pdv-fs dot de
++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de GCC host triplet: powerpc-ibm-aix5.2.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27791

[Bug target/27791] assert() without -ansi doesnt print the failing condition

2006-05-29 Thread joerg dot richter at pdv-fs dot de
--- Comment #2 from joerg dot richter at pdv-fs dot de 2006-05-29 08:31 --- I think this is a GCC problem, because this is the header installed by GCC. Removing the header works, because then /usr/include/assert.h is used. And this system header works as expected. -- http

[Bug c++/25156] New: wrong error message (int instead of bool)

2005-11-29 Thread joerg dot richter at pdv-fs dot de
: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25156

[Bug preprocessor/21815] -E output depends on -g

2005-06-06 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-06-06 12:33 --- Whoever has the same problem: -fno-working-directory solves it -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21815

[Bug c/21815] New: -E output depends on -g

2005-05-30 Thread joerg dot richter at pdv-fs dot de
dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21815

[Bug preprocessor/21815] -E output depends on -g

2005-05-30 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-05-30 11:41 --- Well, but I want all generated objects to be the same between our developers. This makes an extremly good cache hit rate with ccache. We arranged with it that we don't have the current/source

[Bug target/21642] New: wrong code with -O2

2005-05-18 Thread joerg dot richter at pdv-fs dot de
Severity: normal Priority: P2 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-ibm-aix5.2.0.0 GCC host triplet: powerpc

[Bug c++/21264] New: duplicate symbol warnings for complex template class

2005-04-28 Thread joerg dot richter at pdv-fs dot de
ReportedBy: joerg dot richter at pdv-fs dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-ibm-aix5.2.0.0 GCC host triplet: powerpc-ibm-aix5.2.0.0 GCC target triplet: powerpc-ibm-aix5.2.0.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21264

[Bug preprocessor/19753] New: different LANG settings and ccache don't work together

2005-02-02 Thread joerg dot richter at pdv-fs dot de
: UNCONFIRMED Severity: normal Priority: P2 Component: preprocessor AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-27 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-27 08:08 --- std::cout.imbue( std::locale( C ) ); nor std::cout.imbue( std::locale::classic() ); nor export LANG=C does change anything Joerg -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19642

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-27 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-27 12:39 --- A quick test shows, that std::setlocale(LC_ALL, NULL) returns C C C C C C. But std::setlocale(LC_NUMERIC, NULL) returns C I think it is enough to test LC_NUMERIC. I'll try to test a modified patch

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-27 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-27 12:54 --- I think this runtimes of the different setlocale() calls might be interesting: (This is for 100 calls) category locale time LC_ALL00.70s LC_NUMERIC00.29s LC_ALL C

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-27 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-27 15:05 --- With patch draft_19642_3 and count=100 $ time t /dev/null real 0,64 user 0,60 sys0,01 $ time t cout /dev/null real 1,14 user 1,12 sys0,00 Now its only 2 times slower than

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-27 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-28 07:54 --- (In reply to comment #26) Excellent. Can you please check whether on AIX this is ok (de_DE is just an example, any actually installed named locale should do): [code] In short, we should make sure

[Bug c++/19642] New: streaming doubles is very slow compared to sprintf

2005-01-26 Thread joerg dot richter at pdv-fs dot de
Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: powerpc-ibm-aix5.2.0.0 GCC host triplet: powerpc-ibm-aix5.2.0.0 GCC target triplet

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-26 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-26 15:00 --- I took some backtraces during a longer run of the program and most of the time it looked like this: (I removed some templates to make it readable) __issetuid load_locale setlocale int std

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-26 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-26 15:18 --- Ok, lets say I took 100 backtraces and got 99 times this one. I hope this is enough percentage. _GLIBCXX_USE_C99 is defined -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19642

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-26 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-26 15:41 --- ;) No, I mean *relative* percentages: setlocal in your profile is on top, higher than __convert_from_v and everything else. I'm asking: is consuming 1%, 10%, or 99% of the total runtime? Doesn't

[Bug libstdc++/19642] streaming doubles is very slow compared to sprintf

2005-01-26 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2005-01-26 16:00 --- If it helps you, here the first lines of prof. But in practice some backtraces help me a lot more than a a [g]prof output. Its very fast in finding big bottlenecks, like setlocale in this PR. count

[Bug c++/18976] New: [3.4 Regression] can't pass anonymous enum to function template

2004-12-13 Thread joerg dot richter at pdv-fs dot de
: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: joerg dot richter at pdv-fs dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18976

[Bug c++/7740] builtins, and functions marked as extern C++ with incorrect C linkage

2004-11-03 Thread joerg dot richter at pdv-fs dot de
--- Additional Comments From joerg dot richter at pdv-fs dot de 2004-11-03 08:20 --- In a recent discussion on comp.lang.c++.moderated was this example to give bar C++ linkage and foo C linkage. But g++ gives them both C linkage. It might be anonther instance of this problem. extern

[Bug c++/17947] New: bad warning with implicit conversion and __attribute__((deprecated))

2004-10-12 Thread joerg dot richter at pdv-fs dot de
dot richter at pdv-fs dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17947