[Bug c++/32993] New: Template type dedution of funtion reference includes default args

2007-08-04 Thread gianni at mariani dot ws
I have tested this code on "gcc version 4.3.0 20070202 (experimental)" as well as "gcc version 3.4.4 (cygming special)". f1, f2, d1 and d2 declare functions with the same types but one has default parameters. It appears that the standard requires that all default args should not propagate to the

[Bug c++/32992] New: Incorrect code generated for anonymous union

2007-08-04 Thread scovich at gmail dot com
Compiling and running the code below produces the following output: $ g++ -Wall -DT=long -g3 union-bug.C && ./a.out &array= 0x7fff11782ef0 &a= 0x7fff11782f20 B={1,3,5} A={-1719443200,4196007,-1719451616} A and B should contain the same values, but A contains garbage ins

[Bug c++/32984] add checking for array new & delete

2007-08-04 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2007-08-05 00:31 --- There are third party tools that track these types of problems. Some of them have started to make their way into compilers. For example, the HP static analysis tool called Code Adviser is integrated into the HP aCC compi

[Bug target/32991] New: config/alpha/constraints.md is marked as mime-type

2007-08-04 Thread hjl at lucon dot org
bash-3.2$ svn proplist config/alpha/constraints.md Properties on 'config/alpha/constraints.md': svn:mime-type bash-3.2$ It shouldn't be marked with any property since it is a text file. -- Summary: config/alpha/constraints.md is marked as mime-type Product: gcc

[Bug c++/32990] New: [Regression] gdb has symbol table issues

2007-08-04 Thread scovich at gmail dot com
When debugging code produced by g++-4.3.0-20070716 the debugger regularly outputs the following error message when stopping at breakpoints or examining stack frames: error: warning: (Internal error: pc 0x419e59 in read in psymtab, but not in symtab.) Compiling the same code with g++-4.1.2 and ru

[Bug libfortran/32989] getarg and -fdefault-integer-8

2007-08-04 Thread tkoenig at gcc dot gnu dot org
-- tkoenig at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |tkoenig at gcc dot gnu dot |dot org

[Bug fortran/32962] b = conjg(transpose(a)) is erroneous if b is an allocatable array

2007-08-04 Thread pault at gcc dot gnu dot org
--- Comment #10 from pault at gcc dot gnu dot org 2007-08-04 22:13 --- The problem occurs whenever the destination array is described by and array descriptor; eg. complex(kind=8) :: a(2,2), b(2,2) call testcase (a, b) contains subroutine testcase (a, b) complex(kind=8) :: a(:,

[Bug c++/32984] add checking for array new & delete

2007-08-04 Thread gdr at cs dot tamu dot edu
--- Comment #4 from gdr at cs dot tamu dot edu 2007-08-04 22:09 --- Subject: Re: add checking for array new & delete "dcb314 at hotmail dot com" <[EMAIL PROTECTED]> writes: | (In reply to comment #1) | > Special, dedicated tools exist for that task. | | Would you be willing to name

[Bug c++/32984] add checking for array new & delete

2007-08-04 Thread gdr at cs dot tamu dot edu
--- Comment #3 from gdr at cs dot tamu dot edu 2007-08-04 22:06 --- Subject: Re: add checking for array new & delete "dcb314 at hotmail dot com" <[EMAIL PROTECTED]> writes: | The compiler can generate a whole bunch of warnings | already. Which fall in different mindset that the one y

Re: [Bug c++/32984] add checking for array new & delete

2007-08-04 Thread Gabriel Dos Reis
"dcb314 at hotmail dot com" <[EMAIL PROTECTED]> writes: | The compiler can generate a whole bunch of warnings | already. Which fall in different mindset that the one you would like. -- Gaby

[Bug libgcj/21821] MAXPATHLEN usage in libjava

2007-08-04 Thread samuel dot thibault at ens-lyon dot org
--- Comment #10 from samuel dot thibault at ens-lyon dot org 2007-08-04 22:02 --- It got fixed in CVS. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21821

[Bug fortran/32979] Implement vendor-specific ISNAN() intrinsic function

2007-08-04 Thread fxcoudert at gcc dot gnu dot org
-- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added URL||http://gcc.gnu.org/ml/gcc- |

[Bug fortran/31214] User-defined operator using entry leads to ICE

2007-08-04 Thread pault at gcc dot gnu dot org
--- Comment #8 from pault at gcc dot gnu dot org 2007-08-04 20:58 --- Subject: Bug 31214 Author: pault Date: Sat Aug 4 20:58:11 2007 New Revision: 127214 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127214 Log: 2007-08-04 Paul Thomas <[EMAIL PROTECTED]> PR fortran/

[Bug fortran/31214] User-defined operator using entry leads to ICE

2007-08-04 Thread pault at gcc dot gnu dot org
--- Comment #7 from pault at gcc dot gnu dot org 2007-08-04 20:46 --- Subject: Bug 31214 Author: pault Date: Sat Aug 4 20:46:11 2007 New Revision: 127213 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127213 Log: 2007-08-04 Paul Thomas <[EMAIL PROTECTED]> PR fortran/

[Bug libfortran/32770] [Meta-bug] -fdefault-integer-8 issues

2007-08-04 Thread tkoenig at gcc dot gnu dot org
--- Comment #28 from tkoenig at gcc dot gnu dot org 2007-08-04 20:14 --- Subject: Bug 32770 Author: tkoenig Date: Sat Aug 4 20:14:26 2007 New Revision: 127212 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127212 Log: 2007-08-04 Thomas Koenig <[EMAIL PROTECTED]> PR

[Bug fortran/32962] b = conjg(transpose(a)) is erroneous if b is an allocatable array

2007-08-04 Thread pault at gcc dot gnu dot org
--- Comment #9 from pault at gcc dot gnu dot org 2007-08-04 20:13 --- (In reply to comment #4) > Confirmed. > > Paul, I'm putting you on the CC list because you fixed > PR 31994, the original conjg(transpose()) bug. Maybe > you can do something about this one :-) > Nice try but I thi

[Bug libfortran/32989] New: getarg and -fdefault-integer-8

2007-08-04 Thread tkoenig at gcc dot gnu dot org
Compiling the testsuite program: $ gfortran -fdefault-integer-8 getarg_1.f90 getarg_1.f90:6.14: CALL GETARG(I,ARGS) 1 Error: Type of argument 'count' in call to 'getarg' at (1) should be INTEGER(8), not INTEGER(4) getarg_1.f90:12.14: CALL GETARG(I,ARGS) 1 Error: Ty

[Bug c++/32984] add checking for array new & delete

2007-08-04 Thread dcb314 at hotmail dot com
--- Comment #2 from dcb314 at hotmail dot com 2007-08-04 19:52 --- (In reply to comment #1) > Special, dedicated tools exist for that task. Would you be willing to name three of them ? > The above should not be the business of the *compiler*. Why not ? The compiler can generate a w

[Bug fortran/32980] Vendor extension: Intrinsic functions (D)GAMMA, LGAMMA (ALGAMA/DLGAMA)

2007-08-04 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-08-04 19:32 --- > Aren't they included in the current F2008, by any chance? Yes and no. The Fortran 2008 draft has the following functions, but they are not necessarily called the same as the typical vendor extensions. http://j3-fort

[Bug fortran/31189] Support backtracing for non-library errors

2007-08-04 Thread fxcoudert at gcc dot gnu dot org
--- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-08-04 18:49 --- Thanks Tobias for the patch, here's an updated version that I intend to submit for review... Index: runtime/backtrace.c === --- runtime/backtrace.c

[Bug libfortran/32770] [Meta-bug] -fdefault-integer-8 issues

2007-08-04 Thread tkoenig at gcc dot gnu dot org
--- Comment #27 from tkoenig at gcc dot gnu dot org 2007-08-04 18:21 --- Subject: Bug 32770 Author: tkoenig Date: Sat Aug 4 18:20:54 2007 New Revision: 127210 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127210 Log: 2007-08-04 Thomas Koenig <[EMAIL PROTECTED]> PR

[Bug fortran/32980] Vendor extension: Intrinsic functions (D)GAMMA, LGAMMA (ALGAMA/DLGAMA)

2007-08-04 Thread fxcoudert at gcc dot gnu dot org
--- Comment #1 from fxcoudert at gcc dot gnu dot org 2007-08-04 17:53 --- Aren't they included in the current F2008, by any chance? -- fxcoudert at gcc dot gnu dot org changed: What|Removed |Added --

[Bug fortran/32987] TAB in FORMAT: accept extension, warn with -std=f*

2007-08-04 Thread patchapp at dberlin dot org
--- Comment #7 from patchapp at dberlin dot org 2007-08-04 17:40 --- Subject: Bug number PR32987 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/2007-08/msg00246.html -- http://gcc.gnu.org/bugzilla/sh

[Bug fortran/32987] TAB in FORMAT: accept extension, warn with -std=f*

2007-08-04 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2007-08-04 17:37 --- > > - Silently accept the tab in libgfortran > I disagree on this point. Discussion -> [EMAIL PROTECTED] list; starts here: http://gcc.gnu.org/ml/fortran/2007-08/msg00097.html > > - Give a warning or an error with -

[Bug fortran/32987] TAB in FORMAT: accept extension, warn with -std=f*

2007-08-04 Thread sgk at troutmask dot apl dot washington dot edu
--- Comment #5 from sgk at troutmask dot apl dot washington dot edu 2007-08-04 17:00 --- Subject: Re: TAB in FORMAT: accept extension, warn with -std=f* On Sat, Aug 04, 2007 at 04:53:33PM -, burnus at gcc dot gnu dot org wrote: > > > I therefore suggest: > - Silently accept the

[Bug fortran/32969] (rr)?spacing give wrong answers with -fdefault-integer-8

2007-08-04 Thread kargl at gcc dot gnu dot org
-- kargl at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32969

[Bug fortran/32968] selected_(int|real)_kind fail with -fdefault-integer-8

2007-08-04 Thread kargl at gcc dot gnu dot org
--- Comment #14 from kargl at gcc dot gnu dot org 2007-08-04 16:53 --- Should be fixed on trunk. No back port. -- kargl at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/32987] TAB in FORMAT: accept extension, warn with -std=f*

2007-08-04 Thread burnus at gcc dot gnu dot org
--- Comment #4 from burnus at gcc dot gnu dot org 2007-08-04 16:53 --- I just checked: ifort, sunf95, openf95, g95 and even the picky NAG f95 accept it. None of the compilers gives a warning except of "ifort" when passing the option "-stand 95": fortcom: Warning: format_with_tab.f, line

[Bug fortran/32969] (rr)?spacing give wrong answers with -fdefault-integer-8

2007-08-04 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2007-08-04 16:53 --- Should be fixed on trunk. No back port. -- kargl at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/32969] (rr)?spacing give wrong answers with -fdefault-integer-8

2007-08-04 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2007-08-04 16:49 --- Subject: Bug 32969 Author: kargl Date: Sat Aug 4 16:48:50 2007 New Revision: 127205 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127205 Log: 2008-08-04 Steven G. Kargl <[EMAIL PROTECTED]> PR fort

[Bug fortran/32968] selected_(int|real)_kind fail with -fdefault-integer-8

2007-08-04 Thread kargl at gcc dot gnu dot org
--- Comment #13 from kargl at gcc dot gnu dot org 2007-08-04 16:49 --- Subject: Bug 32968 Author: kargl Date: Sat Aug 4 16:48:50 2007 New Revision: 127205 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127205 Log: 2008-08-04 Steven G. Kargl <[EMAIL PROTECTED]> PR for

[Bug fortran/32987] GFortran FORMAT statement error

2007-08-04 Thread kargl at gcc dot gnu dot org
--- Comment #3 from kargl at gcc dot gnu dot org 2007-08-04 16:26 --- Here's a patch that permits gfortran to accept your INVALID code. Your code should be fixed, and I will activity oppose application of this patch by others. Index: format.c ===

[Bug c/32988] [4.3.0 Regression] ICE in build2_stat, at tree.c:3081

2007-08-04 Thread michelin60 at gmail dot com
--- Comment #3 from michelin60 at gmail dot com 2007-08-04 16:11 --- Created an attachment (id=14024) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14024&action=view) Failing *.s -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988

[Bug c/32988] [4.3.0 Regression] ICE in build2_stat, at tree.c:3081

2007-08-04 Thread michelin60 at gmail dot com
--- Comment #2 from michelin60 at gmail dot com 2007-08-04 16:10 --- Created an attachment (id=14023) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14023&action=view) OK *.I -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988

[Bug ada/31174] [4.2 regression] ACATS C380004 fails

2007-08-04 Thread jdgressett at amli-denton dot com
--- Comment #6 from jdgressett at amli-denton dot com 2007-08-04 16:10 --- Ada compiler in gcc-4.2.1 still fails C380004. Built on Fedora 7. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31174

[Bug c/32988] [4.3.0 Regression] ICE in build2_stat, at tree.c:3081

2007-08-04 Thread michelin60 at gmail dot com
--- Comment #1 from michelin60 at gmail dot com 2007-08-04 16:09 --- Created an attachment (id=14022) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14022&action=view) failing *.i -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32988

[Bug c/32988] New: [4.3.0 Regression] ICE in build2_stat, at tree.c:3081

2007-08-04 Thread michelin60 at gmail dot com
-cpu=G4 --enable-clocale=gnu --with-system-zlib Thread model: posix gcc version 4.3.0 20070804 (experimental) /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.3.0/cc1 -E -quiet -nostdinc -v -Iinclude -Iarch/powerpc -Iarch/powerpc/include -Iarch/powerpc -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix

[Bug fortran/32987] GFortran FORMAT statement error

2007-08-04 Thread kargl at gcc dot gnu dot org
--- Comment #2 from kargl at gcc dot gnu dot org 2007-08-04 15:56 --- Fix your code. A tab is not a legal substitution for a space character. -- kargl at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/29493] -masm=intel - does not emit right asm code

2007-08-04 Thread rask at sygehus dot dk
--- Comment #3 from rask at sygehus dot dk 2007-08-04 15:37 --- This appears to intentional. On systems without a prefix on labels, registers are always prefixed with %. This is so that you can have global variables named .e.g. edx. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=294

[Bug fortran/32987] GFortran FORMAT statement error

2007-08-04 Thread satyaakam at yahoo dot co dot in
--- Comment #1 from satyaakam at yahoo dot co dot in 2007-08-04 13:56 --- Created an attachment (id=14021) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14021&action=view) testcase -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32987

[Bug fortran/32987] New: GFortran FORMAT statement error

2007-08-04 Thread satyaakam at yahoo dot co dot in
GFortarn has runtime error when FORMAT has TAB char between parameters (see testcase) 10 format ('Hello ','bug!') ^^^ > ./a.out At line 2 of file format_with_tab.f Fortran runtime error: Unexpected element in format ('Hello ', 'bug!') ^ This b

[Bug fortran/32986] Improve diagnostic message for COMMON with automatic object

2007-08-04 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-08-04 13:36 --- "C588 (R558) A common-block-object shall not be a dummy argument, an allocatable variable, a derived-type object with an ultimate component that is allocatable, an automatic object, a function name, an entry name, a v

[Bug fortran/32985] COMMON checking: TYPE with(out) SEQUENCE/bind(C), ALLOCATABLE

2007-08-04 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-08-04 13:18 --- And the following valid program is rejected: use iso_c_binding implicit none type, bind(C):: a integer(c_int) :: i end type a type(a) :: t common /c/ t end -- http://gcc.gnu.org/bugzilla/show_bug

[Bug fortran/32985] COMMON checking: TYPE with(out) SEQUENCE/bind(C), ALLOCATABLE

2007-08-04 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-08-04 13:17 --- Interestingly, the following gives an error: type a integer :: i end type a type(a) :: t common /c/ t end Related, the following is accepted but invalid (for different reasons): "C588 (R558) A common-b

[Bug target/30315] optimize unsigned-add overflow test on x86 to use cpu flags from addl

2007-08-04 Thread patchapp at dberlin dot org
--- Comment #9 from patchapp at dberlin dot org 2007-08-04 13:10 --- Subject: Bug number PR target/30315 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/2007-08/msg00242.html -- http://gcc.gnu.org/bug

[Bug fortran/32986] New: Improve diagnostic message for COMMON with automatic object

2007-08-04 Thread burnus at gcc dot gnu dot org
The following is invalid, but the error message does not help much: function a(n) real :: x(n) common /c/ x end function Error: Variable 'n' at (1) in this context must be constant Sunf95: real :: x(n) ^ ERROR: "X" is a common-block-object, therefore it must not be declared as an

[Bug fortran/32985] New: Derived type variables need SEQUENCE attribute to be in a COMMON

2007-08-04 Thread burnus at gcc dot gnu dot org
"C589 (R558) If a common-block-object is of a derived type, it shall be a sequence type (4.5.1) or a type with the BIND attribute and it shall have no default initialization." A default initializer is also accepted. Testcase based on the invalid gfortran.dg/namelist_14.f90: !{ dg-do compile } mo

[Bug c++/32984] add checking for array new & delete

2007-08-04 Thread gdr at cs dot tamu dot edu
--- Comment #1 from gdr at cs dot tamu dot edu 2007-08-04 13:01 --- Subject: Re: New: add checking for array new & delete "dcb314 at hotmail dot com" <[EMAIL PROTECTED]> writes: | Given the following C++ code | | class K | { | public: | void f(); | void g(); | | pri

Re: [Bug c++/32984] New: add checking for array new & delete

2007-08-04 Thread Gabriel Dos Reis
"dcb314 at hotmail dot com" <[EMAIL PROTECTED]> writes: | Given the following C++ code | | class K | { | public: | void f(); | void g(); | | private: | int * a; | double * b; | float * c; | unsigned int * d; | }; | | void K :: f() | { | a

[Bug c++/32984] New: add checking for array new & delete

2007-08-04 Thread dcb314 at hotmail dot com
Given the following C++ code class K { public: void f(); void g(); private: int * a; double * b; float * c; unsigned int * d; }; void K :: f() { a = new int; b = new double [ 10]; delete c; delete [] d; } void K ::

[Bug tree-optimization/32772] [4.3 Regression] error: found real variable when subvariables should have appeared

2007-08-04 Thread pinskia at gcc dot gnu dot org
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-08-04 12:06 --- I think this is exactly the same as PR 32032, the inliner not setting has_volatile_ops correctly. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug fortran/32979] Implement vendor-specific ISNAN() intrinsic function

2007-08-04 Thread burnus at gcc dot gnu dot org
--- Comment #6 from burnus at gcc dot gnu dot org 2007-08-04 11:57 --- Created an attachment (id=14020) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14020&action=view) Patch for invoke.texi > I'd go for implementing isnan as an extension, and only isnan. (until we get > the IEEE

[Bug c/32796] [4.3 Regression] internal compiler error: tree check: expected integer_type or enumeral_type or boolean_type or real_type, have pointer_type in int_fits_type_p

2007-08-04 Thread pinskia at gcc dot gnu dot org
--- Comment #6 from pinskia at gcc dot gnu dot org 2007-08-04 11:54 --- Mine. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned

[Bug fortran/31214] User-defined operator using entry leads to ICE

2007-08-04 Thread patchapp at dberlin dot org
--- Comment #6 from patchapp at dberlin dot org 2007-08-04 11:50 --- Subject: Bug number PR31214 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/2007-08/msg00239.html -- http://gcc.gnu.org/bugzilla/sh

[Bug target/32264] gcc 4.2.0 compiled vanilla kernel 2.4.34.5 crashes when VIA C3 optimized -march=c3

2007-08-04 Thread axel at freakout dot de
--- Comment #17 from axel at freakout dot de 2007-08-04 10:45 --- Subject: Re: gcc 4.2.0 compiled vanilla kernel 2.4.34.5 crashes when VIA C3 optimized -march=c3 According to pluto at agmk dot net: > > but who's bug is it? > > it's a kernel bug exposed by recent gcc. > i'm still co