Package: gcc-3.3
Version: 1:3.3.5-5
Severity: minor
Consider the following C code:
-- stuffage.c: CUT HERE --
void stuffage() {
int foo = foo;
}
-- CUT HERE --
If you compile this as follows:
gcc stuffage.c -Wall -c
Then gcc will generate no output. This is a bug, because this program
actual
19, 2003 at 01:50:58AM +, Philip Martin wrote:
> Ian Turner <[EMAIL PROTECTED]> writes:
>
> > Here is the modified code, with some additional checks:
>
> With that code I get a crash when I use Debian's g++-3.0 version 1:3.0.4-7.
>
> I also have a gcc-3.2 tha
As Philip Martin pointed out in bug 185242, the testcase program
submitted is incorrect; having failed to return rval, the return value
is undefined in the case that rval != max.
Fixing this problem, I am unable to reproduce the bug on gcc-3.2 (though
still on gcc-3.0). New source code appears
Good point, though changing the function to return rval in the other
case seems to change the result not at all. I suspect that (due to luck)
rval is on the stack in any case.
Here is the modified code, with some additional checks:
#include
#include
#include
using namespace std;
using names
See also bug 185242, which is nearly identical but refers to
libstdc++5-dev.
In the submission of this bug, I made an error.
$ ./ropetest-320
Aborted
should instead read
$ ./ropetest-300
Segmentation Fault
My apologies. That's what I get for submitting two nearly-identical bug
reports simultaneously.
Ian Turner
See also bug 185243, which is the same bug as applied to listdc++3.
Package: libstdc++5-dev
Version: 1:3.2.3-0pre5
Severity: important
Consider the following program:
--- BEGIN ropetest.c ---
#include
using namespace std;
using namespace __gnu_cxx;
unsigned int rand(unsigned int max) {
unsigned int rval = (unsigned int)(((double)max)*rand()/(RAND_MAX));
if
Package: libstdc++3-dev
Version: 1:3.0.4-7
Severity: important
Consider the following program:
--- BEGIN ropetest.c ---
#include
using namespace std;
using namespace __gnu_cxx;
unsigned int rand(unsigned int max) {
unsigned int rval = (unsigned int)(((double)max)*rand()/(RAND_MAX));
if (rv
Package: gcc-3.2-doc
Version: 1:3.2.1-0pre3
Severity: normal
The page entitled "C++ Extensions" of gcc-3.2.info.gz contains the
following paragraph:
The GNU compiler provides these extensions to the C++ language (and
you can also use most of the C language extensions in your C++
programs). I
Package: gcc-3.2
Version: 1:3.2.1-0pre3
Severity: wishlist
Currently GCC will not inline a call of a function pointer that is known
at compile time. For example, the following code will still result in
the instruction "call funk" when run with -finline-functions on i386:
#include
static char*
Package: g++-3.2
Version: 1:3.2.1-0pre3
Severity: important
Not sure if this is a problem with the CPU, the kernel, the compiler,
or the library. But this seems the most likely candidate. Consider the sample
program below. When compiled as
g++-3.2 foo.cc -ftrapv -o foo
and run, the resultant b
Package: g++-3.0
Version: 1:3.0.4-7
Severity: normal
The source below makes G++-3.0 report a syntax error where none exists.
Basically it doesn't wait before giving up on the typename.
// Comment out to make it work.
#define BREAK
struct a {
struct b {
typedef unsigned int foo_t;
foo_
13 matches
Mail list logo