[Bug c/34389] New: -Wconversion produces wrong warning

2007-12-07 Thread Raimund dot Merkert at baesystems dot com
If compiled with gcc -c -Wconversion the following code produces the warning: test.c:7: warning: conversion to ‘short int’ from ‘int’ may alter its value but if -DNO_WARNING is turned on it doesn't even though it should be same code. cat > test.c

[Bug c++/32883] Regression: reverse_iterator produces valgrind errors

2007-07-24 Thread Raimund dot Merkert at baesystems dot com
--- Comment #1 from Raimund dot Merkert at baesystems dot com 2007-07-24 16:40 --- If I replace *i with ++i, I get basically the same result. It has struck me as weird that this would be the "preferred way" according to Scott Myers, but looking at the implementation bits/stl_

[Bug c++/32883] New: Regression: reverse_iterator produces valgrind errors

2007-07-24 Thread Raimund dot Merkert at baesystems dot com
: Raimund dot Merkert at baesystems dot com GCC host triplet: g++ (GCC) 3.4.3 20050227 (Red Hat 3.4.3-22.1) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32883

[Bug c++/32667] builtin operator= generates memcpy with overlapping memory regions

2007-07-07 Thread Raimund dot Merkert at baesystems dot com
--- Comment #2 from Raimund dot Merkert at baesystems dot com 2007-07-07 22:36 --- This may be an old bug and may have crept in between 3.3.3 and 3.4.0 (latter has it, former doesn't) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32667

[Bug c++/32667] New: builtin operator= generates memcpy with overlapping memory regions

2007-07-07 Thread Raimund dot Merkert at baesystems dot com
egions Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Raimund dot Merkert at baesystems dot com GCC host triplet: i686-pc-linux-gnu

[Bug c++/25814] Request for warning for parser ambiguity of function declarations and variable declarations with initializations

2006-11-14 Thread Raimund dot Merkert at baesystems dot com
--- Comment #6 from Raimund dot Merkert at baesystems dot com 2006-11-14 15:52 --- It does not seem to warn about unused functions. I also tried the following test case where 4.0.0 (solaris) does not warn even about foo ( I guess because it's referenced in Y's construc

[Bug c++/26040] New: funny ::std::ostream behavior when using a temporary

2006-01-30 Thread Raimund dot Merkert at baesystems dot com
hen using a temporary Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Raimund dot Merkert at baesystems dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26040

[Bug c++/25814] Request for warning for parser ambiguity of function declarations and variable declarations with initializations

2006-01-17 Thread Raimund dot Merkert at baesystems dot com
--- Comment #3 from Raimund dot Merkert at baesystems dot com 2006-01-17 12:32 --- I would not consider myself a beginner, but I'm no c++ language laywer either. Usually the problem will get caught as soon as you try to invoke a method, but if it's something like a gu

[Bug c++/25814] New: Request for new warning

2006-01-16 Thread Raimund dot Merkert at baesystems dot com
sion: 4.0.2 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: Raimund dot Merkert at baesystems dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25814