[Bug c++/28016] [4.1 Regression] emitting template constant

2006-07-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #13 from mmitchel at gcc dot gnu dot org 2006-07-12 07:22 --- Subject: Bug 28016 Author: mmitchel Date: Wed Jul 12 07:22:47 2006 New Revision: 115365 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115365 Log: PR c++/28016 * decl.c (cp_finsh_decl): Do

[Bug c++/28016] [4.1 Regression] emitting template constant

2006-07-12 Thread mmitchel at gcc dot gnu dot org
--- Comment #14 from mmitchel at gcc dot gnu dot org 2006-07-12 07:23 --- Fixed in 4.1.2. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Sta

[Bug fortran/28354] New: 0.99999 printed as 0. instead of 1. by format(f3.0)

2006-07-12 Thread enrico dot segre at weizmann dot ac dot il
Compiling the following snippet write(*,100) 0.9 write(*,100) 0.99 write(*,100) 0.999 write(*,100) 0. write(*,100) 0.9 write(*,100) 0.99 100 format((f3.0)) end with gcc-gfortran-4.1.1-1.fc5, I get as output

[Bug c++/28345] static const "class" initialisation causes core dump

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-07-12 08:16 --- Fixed in 3.4.4. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|

[Bug ada/28355] New: Ada Problem with "Abort"

2006-07-12 Thread ksicom at inbox dot ru
Program1: with Ada.Text_IO; use Ada.Text_IO; procedure Main is task Task1 is entry Stop; end Task1; task body Task1 is begin accept Stop; end Task1; begin Put_Line ( "Please wait..." ); Delay 3.0; abort Task1; Put_Line ( "Task Task1 Aborted!" ); end main

[Bug fortran/28354] 0.99999 printed as 0. instead of 1. by format(f3.0)

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-12 08:56 --- 0.9 in Fortran is 0.9f in C. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28354

[Bug tree-optimization/28187] [4.1/4.2 Regression] '-O2 -fwrapv' exhausts memory.

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #11 from rguenth at gcc dot gnu dot org 2006-07-12 09:25 --- Subject: Bug 28187 Author: rguenth Date: Wed Jul 12 09:25:40 2006 New Revision: 115366 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115366 Log: 2006-07-12 Richard Guenther <[EMAIL PROTECTED]>

[Bug tree-optimization/28187] [4.1/4.2 Regression] '-O2 -fwrapv' exhausts memory.

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #12 from rguenth at gcc dot gnu dot org 2006-07-12 09:26 --- Fixed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNE

[Bug c/28356] New: xorg-server-X11R7.1/fb/fbmmx.c:1584: internal compiler error

2006-07-12 Thread rainer-gccbugzilla at 7val dot com
/usr/bin/gcc-3.4 -mmmx -msse -Winline --param inline-unit-growth=1 --param large-function-growth=1 -O3 -mtune=pentium4 -march=i686 -fomit-frame-pointer -floop-optimize2 -funroll-loops -ftracer -MT libfbmmx_la-fbmmx.lo -MD -MP -MF .deps/libfbmmx_la-fbmmx.Tpo -c fbmmx.i -fPIC -DPIC -o /tm

[Bug c/28356] xorg-server-X11R7.1/fb/fbmmx.c:1584: internal compiler error

2006-07-12 Thread rainer-gccbugzilla at 7val dot com
--- Comment #1 from rainer-gccbugzilla at 7val dot com 2006-07-12 10:09 --- Created an attachment (id=11864) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11864&action=view) preprocessed source file that causes the bug -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28356

[Bug c/28356] xorg-server-X11R7.1/fb/fbmmx.c:1584: internal compiler error

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-07-12 10:53 --- Works for me with 3.4.0 to 3.4.6. /space/rguenther/install/gcc-3.4.0/bin/gcc -mmmx -msse -Winline --param inline-unit-growth=1 --param large-function-growth=1 -O3 -mtune=pentium4 -march=i686 -fomit-frame-po

[Bug target/22250] [sh4] ICE compiling qt-4.0.0-embedded snapshot

2006-07-12 Thread mnylund at emtrion dot de
--- Comment #7 from mnylund at emtrion dot de 2006-07-12 11:17 --- Here's a workaround for the bug (gcc-3.4.4 qt-3.3.6): - build with -O1 is ok - build with -O2 leads to ICE - build with -O2 -fno-schedule-insns2 is OK -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22250

[Bug rtl-optimization/28356] xorg-server-X11R7.1/fb/fbmmx.c:1584: internal compiler error

2006-07-12 Thread rainer-gccbugzilla at 7val dot com
--- Comment #3 from rainer-gccbugzilla at 7val dot com 2006-07-12 11:26 --- Yes, it fails with the preprocessed file that I attached. I also tried a "apt-get install --reinstall gcc-3.4 gcc-3.4-base" to make sure that the gcc installation isn't corrupt. Omitting "-ftracer" stops the err

[Bug fortran/28353] ICE: Segmentation fault

2006-07-12 Thread paul dot richard dot thomas at cea dot fr
--- Comment #4 from paul dot richard dot thomas at cea dot fr 2006-07-12 11:54 --- Tobias, I am so glad to see that somebody is passing components of derived type arrays; I bust myself to make that work! Anyway, I partially broke it with a recent patch - sorry. Reduced testcase: SUB

[Bug rtl-optimization/28356] xorg-server-X11R7.1/fb/fbmmx.c:1584: internal compiler error

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2006-07-12 12:25 --- please report the output from the compiler if you specify -v as additional argument. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28356

[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.

2006-07-12 Thread multix at gmail dot com
--- Comment #26 from multix at gmail dot com 2006-07-12 12:27 --- I have 6.5.17 too. I would propose to either improve the autodetect features or point out that flag in the atchitecture specific page so that other users won't ask. I'm available for testing on my box. I Think I have acces

[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.

2006-07-12 Thread pcarlini at suse dot de
--- Comment #27 from pcarlini at suse dot de 2006-07-12 12:29 --- (In reply to comment #26) > I have 6.5.17 too. > ... or point out that > flag in the atchitecture specific page so that other users won't ask. That makes sense. Can you prepare a patch? Thanks in advance. -- http://g

[Bug bootstrap/28324] boostrapping with gcc fails with unrecognized linker option

2006-07-12 Thread multix at gmail dot com
--- Comment #4 from multix at gmail dot com 2006-07-12 12:32 --- I already configured using --with-gnu-as but not with --with-gnu-ld. Possibly the two options need to be specified together, that is the gnu assembler needs the gnu linker? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?

[Bug rtl-optimization/28356] xorg-server-X11R7.1/fb/fbmmx.c:1584: internal compiler error

2006-07-12 Thread rainer-gccbugzilla at 7val dot com
--- Comment #5 from rainer-gccbugzilla at 7val dot com 2006-07-12 12:44 --- debianSarge tiffany:/tmp$ cat ./x /usr/bin/gcc-3.4 -v -mmmx -msse -Winline --param inline-unit-growth=1 --param large-function-growth=1 -O3 -mtune=pentium4 -march=i686 -fomit-frame-pointer -floop-optim

[Bug c++/28357] New: c-style downcasts on const multiple inherited objects differ if const vs non-const cast

2006-07-12 Thread caolanm at redhat dot com
i.e. the attached test case with > gcc (GCC) 4.1.1 20060629 (Red Hat 4.1.1-6) and > gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1) gives... New-Style Correct: const 0xbfdb3d2c, unconst 0xbfdb3d2c Old-Style Correct: const 0xbfdb3d2c, unconst 0xbfdb3d2c Old-Style Incorrect: const 0xbfdb3d2c, uncon

[Bug c++/28357] c-style downcasts on const multiple inherited objects differ if const vs non-const cast

2006-07-12 Thread caolanm at redhat dot com
--- Comment #1 from caolanm at redhat dot com 2006-07-12 12:51 --- Created an attachment (id=11865) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11865&action=view) demo source -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28357

[Bug c++/28358] New: ICE on valide template code using -O1 or -O2, but *not* with -O0 or -O3

2006-07-12 Thread peter dot soetens at fmtc dot be
Full version string: g++-4.1 (GCC) 4.1.2 20060708 (prerelease) (Ubuntu 4.1.1-8ubuntu1) Same problem exists in Debian 'etch'. The error message after the location of the crash is: /usr/include/boost/spirit/core/composite/actions.hpp:106: internal compiler error: in expand_expr_addr_expr_1, at expr.

[Bug c++/28357] [4.0/4.1/4.2 regression] c-style downcasts on const multiple inherited objects differ if const vs non-const cast

2006-07-12 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2006-07-12 13:02 --- Works with 3.4.6 and 3.2.3, reproduced on mainline. -- jakub at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/28358] ICE on valide template code using -O1 or -O2, but *not* with -O0 or -O3

2006-07-12 Thread peter dot soetens at fmtc dot be
--- Comment #1 from peter dot soetens at fmtc dot be 2006-07-12 13:05 --- Created an attachment (id=11866) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11866&action=view) Compressed (bzip2) preprocessed file After unzipping, compile this file using: $ g++-4.1 -c attachment.ii -

[Bug c/28280] [4.2 regression] bogus "statement with no effect" warning with VLA and typeof

2006-07-12 Thread mrs at gcc dot gnu dot org
--- Comment #5 from mrs at gcc dot gnu dot org 2006-07-12 13:12 --- Subject: Bug 28280 Author: mrs Date: Wed Jul 12 13:12:08 2006 New Revision: 115369 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115369 Log: PR c/28280 * c-parser.c (c_parser_typeof_specifier):

[Bug c/28280] [4.2 regression] bogus "statement with no effect" warning with VLA and typeof

2006-07-12 Thread mrs at apple dot com
--- Comment #6 from mrs at apple dot com 2006-07-12 13:13 --- I have checked in a fix for this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28280

[Bug rtl-optimization/28356] xorg-server-X11R7.1/fb/fbmmx.c:1584: internal compiler error

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2006-07-12 13:36 --- I cannot reproduce this with any FSF release of the 3.4 series. This must be a Debian specific bug - please report with them. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug libgcj/28352] Interpreter: Stack trace line numbers sometimes missing or incorrect

2006-07-12 Thread bryce at gcc dot gnu dot org
--- Comment #3 from bryce at gcc dot gnu dot org 2006-07-12 13:56 --- Subject: Bug 28352 Author: bryce Date: Wed Jul 12 13:56:25 2006 New Revision: 115370 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115370 Log: 2006-07-12 Bryce McKinlay <[EMAIL PROTECTED]> PR libgc

[Bug java/28352] gcj -C fails to generate line number info for method

2006-07-12 Thread mckinlay at redhat dot com
--- Comment #4 from mckinlay at redhat dot com 2006-07-12 13:59 --- I've committed a patch which fixes the "off by one" error seen with ecj-produced bytecode. The missing line number issue is a different bug. It seems that "gcj -C" simply does not generate any debug info for the "snafu"

[Bug c++/28235] [4.0/4.1/4.2 Regression] ICE with static const member as default parameter in template

2006-07-12 Thread reichelt at gcc dot gnu dot org
--- Comment #7 from reichelt at gcc dot gnu dot org 2006-07-12 14:08 --- Even shorter (valid) testcase: = template struct A { static const bool i = true; template struct B {}; B<> b; }; = This

[Bug other/28251] dumped addresses makes diffing dumps unusable

2006-07-12 Thread patchapp at dberlin dot org
--- Comment #5 from patchapp at dberlin dot org 2006-07-12 14:15 --- Subject: Bug number PR other/28251 A patch for this bug has been added to the patch tracker. The mailing list url for the patch is http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00517.html -- http://gcc.gnu.org/bugz

[Bug fortran/20541] TR 15581: ALLOCATABLE components

2006-07-12 Thread paul dot richard dot thomas at cea dot fr
--- Comment #9 from paul dot richard dot thomas at cea dot fr 2006-07-12 14:20 --- Created an attachment (id=11867) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11867&action=view) For discussion, perusal and testing: a beta-release of the TR15581 patch This patch represents some

[Bug fortran/20541] TR 15581: ALLOCATABLE components

2006-07-12 Thread paul dot richard dot thomas at cea dot fr
--- Comment #10 from paul dot richard dot thomas at cea dot fr 2006-07-12 14:23 --- Bother! Forget the last test - it is an old, incorrect version. I will post the right one tonight. Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20541

[Bug fastjar/28359] New: fastjar directory traversal problem

2006-07-12 Thread marcus at jet dot franken dot de
fastjar contains the following security problem: When a JAR archive is extracted with filenames with "../" inside, it can extract files outside of the current directory (a so called directory traversal). Unconspicious users unpacking such files could overwrite their own files, or even system file

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread marcus at jet dot franken dot de
--- Comment #1 from marcus at jet dot franken dot de 2006-07-12 14:50 --- Created an attachment (id=11868) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11868&action=view) cups.jar sample file with ../ paths inside. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28359

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread marcus at jet dot franken dot de
--- Comment #2 from marcus at jet dot franken dot de 2006-07-12 14:54 --- Created an attachment (id=11869) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11869&action=view) fix.patch i would propose this patch to fix this problem. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?i

[Bug c++/28217] [4.0/4.1/4.2 regression] ICE in tree_int_cst_sgn

2006-07-12 Thread reichelt at gcc dot gnu dot org
--- Comment #12 from reichelt at gcc dot gnu dot org 2006-07-12 15:03 --- Reduced (from PR 28219) testcase: = template struct A { enum { a, b = a }; void foo(A); }; = bug.h:4: internal compiler error: tree check: expected int

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2006-07-12 15:08 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC|

[Bug fortran/28163] Calling libgfortran's copy_string is inefficient

2006-07-12 Thread fxcoudert at gcc dot gnu dot org
--- Comment #3 from fxcoudert at gcc dot gnu dot org 2006-07-12 15:11 --- Subject: Bug 28163 Author: fxcoudert Date: Wed Jul 12 15:11:11 2006 New Revision: 115372 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115372 Log: PR fortran/28163 * trans-expr.c (gfc_tr

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #4 from rguenth at gcc dot gnu dot org 2006-07-12 15:14 --- Created an attachment (id=11870) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11870&action=view) different fix -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28359

[Bug fortran/28163] Calling libgfortran's copy_string is inefficient

2006-07-12 Thread fxcoudert at gcc dot gnu dot org
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2006-07-12 15:17 --- Fixed on 4.2 -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added Statu

[Bug fortran/28353] ICE: Segmentation fault

2006-07-12 Thread fxcoudert at gcc dot gnu dot org
--- Comment #5 from fxcoudert at gcc dot gnu dot org 2006-07-12 15:19 --- Confirmed, then, if there's a patch already :) -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added -

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2006-07-12 15:19 --- I have applied the 2nd fix to the upstream (savannah) fastjar CVS. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28359

[Bug libfortran/28354] 0.99999 printed as 0. instead of 1. by format(f3.0)

2006-07-12 Thread fxcoudert at gcc dot gnu dot org
--- Comment #2 from fxcoudert at gcc dot gnu dot org 2006-07-12 15:21 --- Confirmed, and not target-specific. I'll look into it. -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/27369] [4.1/4.2 Regression] tree check ICE when attribute externally_visible used

2006-07-12 Thread reichelt at gcc dot gnu dot org
--- Comment #11 from reichelt at gcc dot gnu dot org 2006-07-12 15:45 --- Fails since GCC 4.1.0 for me. -- reichelt at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/28360] New: [4.2 regression] undefined reference when header contains additional namespace

2006-07-12 Thread tbm at cyrius dot com
I get an "undefined reference" error with a recent gcc 4.2 when linking to a class whose header contains an additional namespace that is references from that class. This is a very recent error. It started to occur between 20060626 and 20060709. (sid)1690:[EMAIL PROTECTED]: ~/src/t] make rm -f *.

[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.

2006-07-12 Thread paolo at gcc dot gnu dot org
--- Comment #28 from paolo at gcc dot gnu dot org 2006-07-12 16:03 --- Subject: Bug 27878 Author: paolo Date: Wed Jul 12 16:02:46 2006 New Revision: 115374 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115374 Log: 2006-07-12 Paolo Carlini <[EMAIL PROTECTED]> PR libst

[Bug target/28126] gcc moves an expensive instruction outside of a conditional

2006-07-12 Thread drow at gcc dot gnu dot org
--- Comment #4 from drow at gcc dot gnu dot org 2006-07-12 16:08 --- (In reply to comment #3) > Is it OK to add (set_attr "can_delay" "no") for "tls_get_tp_" > definition? I think so, with suitable comment. Some future MIPS architecture may provide a register for this, in which case th

[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.

2006-07-12 Thread paolo at gcc dot gnu dot org
--- Comment #29 from paolo at gcc dot gnu dot org 2006-07-12 16:10 --- Subject: Bug 27878 Author: paolo Date: Wed Jul 12 16:10:12 2006 New Revision: 115375 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115375 Log: 2006-07-12 Paolo Carlini <[EMAIL PROTECTED]> PR libst

[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.

2006-07-12 Thread ro at techfak dot uni-bielefeld dot de
--- Comment #30 from ro at techfak dot uni-bielefeld dot de 2006-07-12 16:11 --- Subject: Re: GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked. multix at gmail dot com writes: > I'm available for testing on my box. I Think I have access to a 6.5.4 box > too... b

[Bug libstdc++/27878] GCC 4.1.1 build fails on mips-sgi-irix6.5 (libstdc++)/GCC 4.1.0 worked.

2006-07-12 Thread pcarlini at suse dot de
--- Comment #31 from pcarlini at suse dot de 2006-07-12 16:11 --- Doc patch committed to mainline and 4_1-branch. -- pcarlini at suse dot de changed: What|Removed |Added

[Bug c++/28316] [4.0/4.1/4.2 Regression] ICE in in instantiate_decl, at cp/pt.c:11645

2006-07-12 Thread reichelt at gcc dot gnu dot org
--- Comment #2 from reichelt at gcc dot gnu dot org 2006-07-12 16:14 --- With little modifications one can trigger all sorts of behaviour: ICEs in different places and accepts-invalid bugs. *** This bug has been marked as a duplicate of 24791 *** -- reichelt at gcc dot gnu dot org

[Bug c++/24791] ICE on invalid instantiation of template's static member

2006-07-12 Thread reichelt at gcc dot gnu dot org
--- Comment #2 from reichelt at gcc dot gnu dot org 2006-07-12 16:14 --- *** Bug 28316 has been marked as a duplicate of this bug. *** -- reichelt at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/28353] ICE: Segmentation fault

2006-07-12 Thread pault at gcc dot gnu dot org
--- Comment #6 from pault at gcc dot gnu dot org 2006-07-12 16:39 --- FX I couldn't do the confirmation from the lab! Thanks Paul -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28353

[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p

2006-07-12 Thread reichelt at gcc dot gnu dot org
--- Comment #5 from reichelt at gcc dot gnu dot org 2006-07-12 16:39 --- Here's a testcase that crashes even at -O0 since GCC 4.1.0: === template struct A { A() {} }; A<0> a; template<> A<0>::A() {} === As Wolfgang already mentione

[Bug c++/28361] New: Pointer arithmetic failure

2006-07-12 Thread pfister at reith-pfister dot de
if you do something like this: char *buffer; int i; buffer = (char *) malloc (sizeof (struct something) * 1024); for (i=0; i < 1024;i++) memcpy (buffer + i * sizeof (struct something),&i;sizeof (int)); then when i == 255 there is no data stored in buffer. I mean i can read out the correct va

[Bug c++/28360] [4.2 regression] undefined reference when header contains additional namespace

2006-07-12 Thread tbm at cyrius dot com
--- Comment #1 from tbm at cyrius dot com 2006-07-12 16:51 --- This was caused by: r115086 | jason | 2006-06-30 03:15:56 +0200 (Fri, 30 Jun 2006) | 58 lines -- tbm at cyrius dot com changed: What|Removed |Added --

[Bug c++/27977] [4.0/4.1/4.2 Regression] ICE when declaring recursive member in std namespace (illegal code)

2006-07-12 Thread reichelt at gcc dot gnu dot org
--- Comment #2 from reichelt at gcc dot gnu dot org 2006-07-12 16:52 --- This has been fixed on mainline, the 4.1 branch, and the 4.0 branch. Probably by Lee Millward's patch for PR 27821. -- reichelt at gcc dot gnu dot org changed: What|Removed |

[Bug c/28362] New: Invalid code e.g. for ALSA kernel driver

2006-07-12 Thread enrico dot scholz at informatik dot tu-chemnitz dot de
gcc creates invalid code for -- struct snd_mask { unsigned int bits[6]; // ** (1) *** }; static int snd_mask_refine(struct snd_mask *mask, const struct snd_mask *v) { struct snd_mask old; old = *mask; if (mask->bits[0]==0 && mask->bits[1]==0) *(char *)0 = 0; re

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-07-12 16:57 --- Fastjar no longer is included with GCC so closing as will not fix. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug java/21900] [4.1/4.2 Regression] debugging regression when debugging libgcj

2006-07-12 Thread aph at gcc dot gnu dot org
--- Comment #3 from aph at gcc dot gnu dot org 2006-07-12 16:59 --- I can't duplicate this one. (gdb) s gnu.java.lang.MainThread.MainThread(java.lang.Class, java.lang.String[]) ([EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]) at /home/aph/gcc/trunk/libjava/gnu/java/lan

[Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)

2006-07-12 Thread tromey at gcc dot gnu dot org
--- Comment #5 from tromey at gcc dot gnu dot org 2006-07-12 17:00 --- Subject: Bug 27271 Author: tromey Date: Wed Jul 12 17:00:49 2006 New Revision: 115378 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115378 Log: PR libgcj/27271: * java/util/zip/ZipFile.java (

[Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)

2006-07-12 Thread cvs-commit at developer dot classpath dot org
--- Comment #6 from cvs-commit at developer dot classpath dot org 2006-07-12 17:01 --- Subject: Bug 27271 CVSROOT:/cvsroot/classpath Module name:classpath Changes by: Tom Tromey 06/07/12 17:00:34 Modified files: . : ChangeLog java/uti

[Bug c++/28361] Pointer arithmetic failure

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-12 17:01 --- memcpy (buffer + i * sizeof (struct something),&i;sizeof (int)); Well that code should be not compile as there is a syntax error? Also what you gave is not enough to reproduce the bug, do you have a self containe

[Bug libgcj/27271] i/o error (java.util.zip.ZipException: Deflated stream ends early.)

2006-07-12 Thread tromey at gcc dot gnu dot org
--- Comment #7 from tromey at gcc dot gnu dot org 2006-07-12 17:02 --- Fix checked in. It works with the test case from the PR. -- tromey at gcc dot gnu dot org changed: What|Removed |Added --

[Bug libgcj/26910] re-merging java.util.zip

2006-07-12 Thread tromey at gcc dot gnu dot org
--- Comment #2 from tromey at gcc dot gnu dot org 2006-07-12 17:03 --- This is no longer a problem. I think the PR 27271 fix cleaned up the lingering problem. (It is hard to be sure since this report is so vague...) -- tromey at gcc dot gnu dot org changed: What|Remov

[Bug c++/28360] [4.2 regression] undefined reference when header contains additional namespace

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-07-12 17:05 --- The code is invalid as the anonymous namespace causes an ODR violation. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/28360] [4.2 regression] undefined reference when header contains additional namespace

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-12 17:09 --- To better explain: test::MonitorHandle references a class in an anonymous namespace which causes that class to be different in each TU. Since ODR rules say the class needs to be the same across TUs so we declare tes

[Bug c++/28217] [4.0/4.1/4.2 regression] ICE in tree_int_cst_sgn

2006-07-12 Thread bkoz at gcc dot gnu dot org
--- Comment #13 from bkoz at gcc dot gnu dot org 2006-07-12 17:15 --- Volker, great job on the reduction for this. I am once again amazed. -benjamin -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28217

[Bug c/28280] [4.2 regression] bogus "statement with no effect" warning with VLA and typeof

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2006-07-12 17:23 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|NEW

[Bug c++/28357] [4.0/4.1/4.2 regression] c-style downcasts on const multiple inherited objects differ if const vs non-const cast

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-12 17:39 --- Hmm: SdOptionsPrint &rOldUnconst = (SdOptionsPrint&)(rOther); Looks like that is we are saying this is a reinterpret_cast. Related to PR 22132. I bet the fix for PR 22132, just needs to be expanded for reference t

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread rguenth at gcc dot gnu dot org
--- Comment #7 from rguenth at gcc dot gnu dot org 2006-07-12 17:47 --- Well... maybe the RM has an opinion on this. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added

[Bug bootstrap/28324] boostrapping with gcc fails with unrecognized linker option

2006-07-12 Thread ro at gcc dot gnu dot org
--- Comment #5 from ro at gcc dot gnu dot org 2006-07-12 17:48 --- No, not at all. On the contrary, I usually avoid GNU ld on non-Linux platforms. You just need to make sure that GNU ld isn't installed in /usr/local/mips-sgi-irix6.5/bin/ld where gcc looks for ld by default. Rainer

[Bug fastjar/28359] fastjar directory traversal problem

2006-07-12 Thread marcus at jet dot franken dot de
--- Comment #8 from marcus at jet dot franken dot de 2006-07-12 18:30 --- yes, this could still be fixed for release branches ;) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28359

[Bug java/28329] [ecj] gcj leaves .jar and .zip files in /tmp

2006-07-12 Thread tromey at gcc dot gnu dot org
--- Comment #3 from tromey at gcc dot gnu dot org 2006-07-12 19:29 --- testing a patch -- tromey at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|un

[Bug fortran/20541] TR 15581: ALLOCATABLE components

2006-07-12 Thread pault at gcc dot gnu dot org
--- Comment #11 from pault at gcc dot gnu dot org 2006-07-12 19:41 --- Created an attachment (id=11871) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11871&action=view) An unpolluted version of the beta-release patch I do apologise; the previous diff was relative to a development

[Bug java/28329] [ecj] gcj leaves .jar and .zip files in /tmp

2006-07-12 Thread tromey at gcc dot gnu dot org
--- Comment #4 from tromey at gcc dot gnu dot org 2006-07-12 20:01 --- Subject: Bug 28329 Author: tromey Date: Wed Jul 12 20:01:47 2006 New Revision: 115396 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115396 Log: PR java/28329: * lang-specs.h: Pass '%U'-based

[Bug java/28329] [ecj] gcj leaves .jar and .zip files in /tmp

2006-07-12 Thread tromey at gcc dot gnu dot org
--- Comment #5 from tromey at gcc dot gnu dot org 2006-07-12 20:06 --- Fixed on branch. -- tromey at gcc dot gnu dot org changed: What|Removed |Added Status|A

[Bug c++/28363] New: Default template parameter causes compiler segfault

2006-07-12 Thread eric dot lemings at roguewave dot com
[EMAIL PROTECTED] tests]$ gcc --version gcc (GCC) 4.1.0 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [EMAIL PROTECTED] tests]$ cat test01.cpp

[Bug c++/28114] [4.0/4.1 regression] ICE with struct definition in argument of template function

2006-07-12 Thread sje at gcc dot gnu dot org
--- Comment #10 from sje at gcc dot gnu dot org 2006-07-12 21:46 --- Subject: Bug 28114 Author: sje Date: Wed Jul 12 21:46:43 2006 New Revision: 115397 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115397 Log: PR c++/28114 * name-lookup.c (pushtag): Return if we

[Bug c++/28114] [4.0/4.1 regression] ICE with struct definition in argument of template function

2006-07-12 Thread sje at gcc dot gnu dot org
--- Comment #11 from sje at gcc dot gnu dot org 2006-07-12 21:48 --- Subject: Bug 28114 Author: sje Date: Wed Jul 12 21:47:58 2006 New Revision: 115398 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115398 Log: PR c++/28114 * g++.dg/other/pr28114.C: New. Added:

[Bug c++/28217] [4.0/4.1/4.2 regression] ICE in tree_int_cst_sgn

2006-07-12 Thread jason at gcc dot gnu dot org
--- Comment #14 from jason at gcc dot gnu dot org 2006-07-12 21:58 --- Subject: Bug 28217 Author: jason Date: Wed Jul 12 21:57:58 2006 New Revision: 115399 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115399 Log: PR c++/28217 * semantics.c (note_decl_for_pch):

[Bug other/28297] GCC 4.1.1 fails to build on Mac OS X 10.4.6

2006-07-12 Thread craigwd2000 at gmail dot com
--- Comment #4 from craigwd2000 at gmail dot com 2006-07-12 22:08 --- Created an attachment (id=11872) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11872&action=view) This is my config.log file that was generated when attempting to compile GCC 4.1.1. -- http://gcc.gnu.org/bug

[Bug other/28297] GCC 4.1.1 fails to build on Mac OS X 10.4.6

2006-07-12 Thread craigwd2000 at gmail dot com
--- Comment #5 from craigwd2000 at gmail dot com 2006-07-12 22:10 --- I have also just updated my iMac G5 to 10.4.7. The error in 7/07/06 comment occurred just shortly after updating to 10.4.7 too. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28297

[Bug other/28297] GCC 4.1.1 fails to build on Mac OS X 10.4.6

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2006-07-12 22:11 --- The config.log in the libstdc++ directory under the powerpc-apple-darwin8.7.0 directory would be more useful. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28297

[Bug other/28297] GCC 4.1.1 fails to build on Mac OS X 10.4.6

2006-07-12 Thread craigwd2000 at gmail dot com
--- Comment #7 from craigwd2000 at gmail dot com 2006-07-12 22:25 --- Created an attachment (id=11873) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11873&action=view) My config.log file that's related to Libstdc++. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28297

[Bug tree-optimization/28364] New: poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread zackw at panix dot com
Consider the following test program: #include bool has_bad_chars(std::string const & path) { for (std::string::const_iterator c = path.begin(); c != path.end(); c++) { unsigned char x = static_cast(*c); if (x <= 0x1f || x == 0x5c || x == 0x7f) return true; } return

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread zackw at panix dot com
--- Comment #1 from zackw at panix dot com 2006-07-12 22:33 --- Created an attachment (id=11874) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11874&action=view) assembly output (bad on top, hand-corrected below) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28364

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-07-12 22:41 --- Loop-Copy header is doing it Which means there is a confusion at what is the real header of the loop here. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28364

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread zackw at panix dot com
--- Comment #3 from zackw at panix dot com 2006-07-12 22:42 --- I should mention that the exact command line flags were -O2 -fomit-frame-pointer -march=pentium4, and that I hand-tweaked the label numbers for ease of reading. Also, -fno-tree-ch does suppress this bad optimization, but in

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread zackw at panix dot com
--- Comment #4 from zackw at panix dot com 2006-07-12 22:48 --- I remembered that I had a build of 4.2 from last week lying around. It generates even worse code - still with the duplication of most of the loop, plus a bunch of unnecessary register fiddling and bad addressing mode choice

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-07-12 22:52 --- For me on PPC-darwin, it generates pretty good code at just -O2 even though there is a duplicated "header". The loop is pretty good at scheduling the code too: L9: lbz r0,0(r3) cmplwi cr7,r0,31

[Bug c++/28365] New: error: ' error: 'MyClass::MyClass(const MyClass&)' is private error: within this context

2006-07-12 Thread kk at microfocus dot com
class MyClass { public: MyClass() {} MyClass(int i) { m_i = i;} private: MyClass(const MyClass& x) {}; int m_i; }; class MyInserter { public: MyInserter() {}; MyInserter& operator<<(const MyClass& m) {m_c = m; return *this;}; private: MyClass m_c; }; int main() { MyClass a(1); MyInserter

[Bug c++/28365] error: ' error: 'MyClass::MyClass(const MyClass&)' is private error: within this context

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-07-12 23:11 --- The C++ standard changed to allow this after we (GCC) decided that we should follow the C++ standard. Anyways this is a dup of bug 25950. *** This bug has been marked as a duplicate of 25950 *** -- pinskia at gc

[Bug c++/25950] [3.4/4.0/4.1] [DR 391] Reference binding and explicit copy constructors

2006-07-12 Thread pinskia at gcc dot gnu dot org
--- Comment #23 from pinskia at gcc dot gnu dot org 2006-07-12 23:11 --- *** Bug 28365 has been marked as a duplicate of this bug. *** -- pinskia at gcc dot gnu dot org changed: What|Removed |Added -

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread rakdver at gcc dot gnu dot org
--- Comment #6 from rakdver at gcc dot gnu dot org 2006-07-12 23:13 --- Loop header copying is OK; the result is the one I would expect, it certainly does not make the code worse (unless you are optimizing for code size), and in many cases may make it better. I will have a look at the a

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread zackw at panix dot com
--- Comment #7 from zackw at panix dot com 2006-07-12 23:19 --- Created an attachment (id=11875) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11875&action=view) C test case (with interesting implications) I've found a plain C test case. In the process, I've found that the way li

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread zackw at panix dot com
--- Comment #8 from zackw at panix dot com 2006-07-12 23:21 --- Zdenek: I don't see how you can say that what we get is optimal code "unless optimizing for size". The code generated *will* be slower than the alternative. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28364

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread rakdver at atrey dot karlin dot mff dot cuni dot cz
--- Comment #9 from rakdver at atrey dot karlin dot mff dot cuni dot cz 2006-07-12 23:30 --- Subject: Re: poor optimization choices when iterating over a std::string (probably not c++-specific) > Zdenek: I don't see how you can say that what we get is optimal code "unless > optimizing

[Bug tree-optimization/28364] poor optimization choices when iterating over a std::string (probably not c++-specific)

2006-07-12 Thread zackw at panix dot com
--- Comment #10 from zackw at panix dot com 2006-07-12 23:33 --- I-cache. Also, more iterations before the branch predictors figure out what's going on. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28364

  1   2   >