[Bug c/37645] New: [4.2/4.3/4.4 regression] ICE with weakref attribute

2008-09-25 Thread reichelt at gcc dot gnu dot org
The following code snippet triggers an ICE since GCC 4.1.0: == void foo(int i __attribute__((__weakref__ (xyz; == bug.c:1: internal compiler error: tree check: expected tree that

[Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute

2008-09-25 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37645

[Bug c++/37646] New: [4.2/4.3/4.4 regression] ICE with function vs. member function

2008-09-25 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.2.0: === struct A { void foo(); void bar(int i) { void (*p)() = i ? foo : foo; } }; === bug.cc: In member function 'void A::bar(int)': bug.cc:7: internal

[Bug c++/37646] [4.2/4.3/4.4 regression] ICE with function vs. member function

2008-09-25 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37646

[Bug c++/37647] New: [4.3/4.4 regression] ICE with invalid use of constructor

2008-09-25 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.3.0: == struct A { A() { void A(); } }; == bug.cc: In constructor 'A::A()': bug.cc:3: error: return type specification for constructor invalid bug.cc:3: internal compiler error: in

[Bug c++/37647] [4.3/4.4 regression] ICE with invalid use of constructor

2008-09-25 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37647

[Bug c/37648] New: Incorrect warning flag ignored with precision in printf

2008-09-25 Thread ciobi at inbox dot com
Consider this program: -- a.c #include stdio.h int main() { int a = 10; printf(%d\n, a); printf(%0.4d\n, a); return 0; } --- By compiling with: gcc -Wall a.c This warning gets displayed: a.c:7:

[Bug c++/37649] New: [4.4 regression] ICE with invalid template class

2008-09-25 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline: == struct A { templateint struct {}; }; == bug.cc:3: error: template class without a name bug.cc:3: internal compiler error: Segmentation fault Please submit a full

[Bug c++/37649] [4.4 regression] ICE with invalid template class

2008-09-25 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.4.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37649

[Bug c++/37650] New: [4.2/4.3/4.4 regression] ICE with broken default template parameter

2008-09-25 Thread reichelt at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 3.4.0: = templateint struct A {}; templatetypename = class A0: struct B {}; = bug.cc:3: error: an explicit specialization

[Bug c++/37650] [4.2/4.3/4.4 regression] ICE with broken default template parameter

2008-09-25 Thread reichelt at gcc dot gnu dot org
-- reichelt at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37650

[Bug libstdc++/25191] exception_defines.h #defines try/catch

2008-09-25 Thread l dot lunak at suse dot cz
--- Comment #59 from l dot lunak at suse dot cz 2008-09-25 09:56 --- (In reply to comment #58) It seems reasonable to me for try { X } catch... to mean X when -fno-exceptions. We don't need to error except on throw. It seems unreasonable to me that gcc would silently modify

[Bug c++/37649] [4.4 regression] ICE with invalid template class

2008-09-25 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2008-09-25 10:05 --- Can quickly fix this. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug fortran/35723] Can't use run-time array element in character declaration

2008-09-25 Thread domob at gcc dot gnu dot org
--- Comment #2 from domob at gcc dot gnu dot org 2008-09-25 10:28 --- I guess this is illegal, too: PROGRAM main IMPLICIT NONE CALL test (5, (/ 1, 2, 3, 4, 5, 6, 7, 8, 9 /) ) CONTAINS SUBROUTINE test (n, arr) IMPLICIT NONE INTEGER :: n, arr(:) INTEGER :: i = 5

[Bug c++/14912] Do not print default template arguments in error messages

2008-09-25 Thread pluto at agmk dot net
--- Comment #44 from pluto at agmk dot net 2008-09-25 13:20 --- i can reproduce this internal error on both 4.3.1 and 4.3-head. here's a backtrace: Breakpoint 1, error_recursion (context=0x10aeb40) at ../../gcc-4_3-branch/gcc/diagnostic.c:637 637 if (context-lock 3) (gdb) p

[Bug ada/37641] FILE_WRITE_PROPERTIES is deprecated

2008-09-25 Thread sam at gcc dot gnu dot org
--- Comment #2 from sam at gcc dot gnu dot org 2008-09-25 13:47 --- Kai, I didn't notice that you assigned the bug to yourself. Feel free to followup on my mail titled [PATCH] ada/37641: Remplace mingw FILE_WRITE_PROPERTIES by FILE_WRITE_EA sent to gcc-patches. -- sam at gcc dot gnu

[Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute

2008-09-25 Thread jakub at gcc dot gnu dot org
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org

[Bug fortran/37504] Wrongly rejects: unprotected_pointer = protected_pointer

2008-09-25 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2008-09-25 15:02 --- Subject: Bug 37504 Author: burnus Date: Thu Sep 25 15:01:16 2008 New Revision: 140663 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140663 Log: 2008-09-25 Tobias Burnus [EMAIL PROTECTED] PR

[Bug ada/37641] FILE_WRITE_PROPERTIES is deprecated

2008-09-25 Thread nightstrike at gmail dot com
--- Comment #3 from nightstrike at gmail dot com 2008-09-25 15:04 --- I think that was a mistake. He was just trying to confirm the PR, and probably meant to set it to WAITING as opposed to ASSIGNED. I saw your emails to gcc-patches. If you could commit the change, that'd be awesome.

[Bug ada/37641] FILE_WRITE_PROPERTIES is deprecated

2008-09-25 Thread sam at gcc dot gnu dot org
--- Comment #4 from sam at gcc dot gnu dot org 2008-09-25 15:13 --- Subject: Bug 37641 Author: sam Date: Thu Sep 25 15:12:26 2008 New Revision: 140665 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140665 Log: gcc/ada/ PR ada/37641 * adaint.c

[Bug ada/37641] FILE_WRITE_PROPERTIES is deprecated

2008-09-25 Thread sam at gcc dot gnu dot org
--- Comment #5 from sam at gcc dot gnu dot org 2008-09-25 15:14 --- Fixed in current SVN trunk, thanks. -- sam at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/37626] ICE for automatic deallocation of character result variable

2008-09-25 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2008-09-25 16:20 --- Subject: Bug 37626 Author: burnus Date: Thu Sep 25 16:18:45 2008 New Revision: 140667 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140667 Log: 2008-09-25 Tobias Burnus [EMAIL PROTECTED] PR

[Bug fortran/37626] ICE for automatic deallocation of character result variable

2008-09-25 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-09-25 16:21 --- FIXED on the trunk (4.4.0) and on the 4.3 branch. Thanks for the bug report! -- burnus at gcc dot gnu dot org changed: What|Removed |Added

Increment/decrement operator bugs

2008-09-25 Thread Miguel A. Quintans
Hello The result of an expression using pre-decrement or pre-increment such as: y = x * n * --n; gives different results in a few cases where x is placed before or after the rest, or when its value is 1 or not. Please run the program attached where a comment indicates what we think

Re: Increment/decrement operator bugs

2008-09-25 Thread Andrew Thomas Pinski
Sent from my iPhone On Sep 25, 2008, at 10:39 AM, Miguel A. Quintans [EMAIL PROTECTED] wrote: Hello The result of an expression using pre-decrement or pre-increment such as: y = x * n * --n; Try turning on warnings. That is -Wsquence-points. The above is specified behavior

[Bug target/37651] New: __sync_bool_compare_and_swap creates wrong code with -fPIC

2008-09-25 Thread fm3 at os dot inf dot tu-dresden dot de
The following example dumps a core if compiled with -march=i586 -fPIC: #include stdint.h int main(void) { static uint64_t volatile s_u64; __sync_bool_compare_and_swap(s_u64, 0, 0); } The reason is that %ebx will be used as pointer for the memory variable. I can reproduce this bug so far

Re: Increment/decrement operator bugs

2008-09-25 Thread Eric Botcazou
The result of an expression using pre-decrement or pre-increment such as: y = x * n * --n; gives different results in a few cases where x is placed before or after the rest, or when its value is 1 or not. Please run the program attached where a comment indicates what we think works

[Bug c++/37649] [4.4 regression] ICE with invalid template class

2008-09-25 Thread paolo at gcc dot gnu dot org
--- Comment #2 from paolo at gcc dot gnu dot org 2008-09-25 20:39 --- Subject: Bug 37649 Author: paolo Date: Thu Sep 25 20:38:32 2008 New Revision: 140670 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140670 Log: /cp 2008-09-25 Paolo Carlini [EMAIL PROTECTED] PR

[Bug c++/37649] [4.4 regression] ICE with invalid template class

2008-09-25 Thread paolo dot carlini at oracle dot com
--- Comment #3 from paolo dot carlini at oracle dot com 2008-09-25 20:41 --- Fixed. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37649

[Bug c++/37649] [4.4 regression] ICE with invalid template class

2008-09-25 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2008-09-25 20:41 --- . -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug target/37651] __sync_bool_compare_and_swap creates wrong code with -fPIC

2008-09-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-25 21:36 --- I get: xchgl %ebx, %edi lock ; cmpxchg8b(%esi) xchgl %ebx, %edi Which looks good. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37651

[Bug c++/37652] New: Bogus redeclaration warning for `friend __declspec(dllimport) int foo ()'

2008-09-25 Thread v dot haisman at sh dot cvut dot cz
__declspec(dllimport) int foo (); struct S { friend __declspec(dllimport) int foo (); }; This code gives me the following warning: dllexport_test.cxx:5: warning: 'int foo()' redeclared without dllimport attribute: previous dllimport ignored I think it is bogus. I the code clearly declares

[Bug target/37651] __sync_bool_compare_and_swap creates wrong code with -fPIC

2008-09-25 Thread brian at dessent dot net
--- Comment #2 from brian at dessent dot net 2008-09-25 22:29 --- Subject: Re: __sync_bool_compare_and_swap creates wrong code with -fPIC You get that if the variable is auto, but if it's static the reference is with a GOTOFF reloc: xorl%edi, %edi pushl %ebx

[Bug c++/36431] The C++ front-end produces some NOP_EXPR for vector types

2008-09-25 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2008-09-25 23:08 --- Testing the fix right now with the addition assert. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36431

[Bug target/21518] [4.0/4.1 Regression] unable to find a register with -fPIC and -O2 and non inlining static function

2008-09-25 Thread pinskia at gcc dot gnu dot org
--- Comment #16 from pinskia at gcc dot gnu dot org 2008-09-25 23:24 --- I just ran into this again while working on a patch for fwprop.c and I noticed that SMALL_REGISTER_CLASSES is true even for x86_64 which seems wrong. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21518

[Bug middle-end/37448] [4.3 Regression] gcc 4.3.1 cannot compile big function

2008-09-25 Thread vmakarov at gcc dot gnu dot org
--- Comment #19 from vmakarov at gcc dot gnu dot org 2008-09-26 00:15 --- Subject: Bug 37448 Author: vmakarov Date: Fri Sep 26 00:14:30 2008 New Revision: 140674 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140674 Log: 2008-09-25 Vladimir Makarov [EMAIL PROTECTED]

[Bug target/37121] g++ create global symbol for inline function, which make link failed with multiple defination

2008-09-25 Thread drangon dot mail at gmail dot com
--- Comment #7 from drangon dot mail at gmail dot com 2008-09-26 00:33 --- I'm using the win64 native compiler: E:\codeg++ -v Using built-in specs. Target: x86_64-pc-mingw32 Configured with: ../gcc/configure --host=x86_64-pc-mingw32 --target=x86_64-pc-mi ngw32 --disable-nls

[Bug middle-end/37535] [4.4 Regression] gcc/libgcc2.c:404: internal compiler error: Floating point exception

2008-09-25 Thread vmakarov at gcc dot gnu dot org
--- Comment #14 from vmakarov at gcc dot gnu dot org 2008-09-26 00:44 --- Subject: Bug 37535 Author: vmakarov Date: Fri Sep 26 00:43:11 2008 New Revision: 140679 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140679 Log: 2008-09-25 Vladimir Makarov [EMAIL PROTECTED]

[Bug c++/37653] New: Duplicate messages and warnings depending on the program

2008-09-25 Thread sutambe at yahoo dot com
template char I struct Int2Type { enum { value = I }; typedef Int2TypeI type; typedef typename Int2TypeI+1::type next; }; int main(void) { Int2Type5 i; } g++ compiler compiles the above program successfully (as it should) but spits out the same warning message 5 times. If you

[Bug c++/37653] Duplicate messages and warnings depending on the program

2008-09-25 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-09-26 01:33 --- Works correctly on the trunk, that is it does not warn at all. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37653

[Bug libgcj/37636] [4.4 regression] java tools are unable to find resource files

2008-09-25 Thread howarth at nitro dot med dot uc dot edu
--- Comment #3 from howarth at nitro dot med dot uc dot edu 2008-09-26 03:03 --- I notice that gcj on i686-apple-darwin9 is linked against libintl but gjar isn't. Could that be the origin of the failure of --help on gjar but not gcj? --

[Bug c++/34749] Incorrect warning when applying dllimport to friend function

2008-09-25 Thread dannysmith at users dot sourceforge dot net
--- Comment #7 from dannysmith at users dot sourceforge dot net 2008-09-26 03:15 --- *** Bug 37652 has been marked as a duplicate of this bug. *** -- dannysmith at users dot sourceforge dot net changed: What|Removed |Added

[Bug target/37652] Bogus redeclaration warning for `friend __declspec(dllimport) int foo ()'

2008-09-25 Thread dannysmith at users dot sourceforge dot net
--- Comment #1 from dannysmith at users dot sourceforge dot net 2008-09-26 03:15 --- This is duplicate of 34749 *** This bug has been marked as a duplicate of 34749 *** -- dannysmith at users dot sourceforge dot net changed: What|Removed |Added

[Bug target/37633] [4.4 Regression] wrong register use on sh64

2008-09-25 Thread kkojima at gcc dot gnu dot org
--- Comment #1 from kkojima at gcc dot gnu dot org 2008-09-26 03:31 --- I've tried --- ORIG/trunk/gcc/ira-color.c Wed Sep 17 09:48:49 2008 +++ LOCAL/trunk/gcc/ira-color.c Thu Sep 25 12:09:30 2008 @@ -514,7 +514,9 @@ assign_hard_reg (ira_allocno_t allocno, #endif if (!

[Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute

2008-09-25 Thread jakub at gcc dot gnu dot org
--- Comment #1 from jakub at gcc dot gnu dot org 2008-09-26 05:10 --- Subject: Bug 37645 Author: jakub Date: Fri Sep 26 05:09:29 2008 New Revision: 140680 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140680 Log: PR c/37645 * c-common.c

[Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute

2008-09-25 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2008-09-26 05:25 --- Subject: Bug 37645 Author: jakub Date: Fri Sep 26 05:23:48 2008 New Revision: 140681 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=140681 Log: PR c/37645 * c-common.c

[Bug c/37645] [4.2/4.3/4.4 regression] ICE with weakref attribute

2008-09-25 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2008-09-26 05:27 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED