[Bug c++/36870] __has_nothrow_constructor violates the ODR

2008-07-21 Thread paolo at gcc dot gnu dot org
--- Comment #13 from paolo at gcc dot gnu dot org 2008-07-21 09:09 --- Subject: Bug 36870 Author: paolo Date: Mon Jul 21 09:08:41 2008 New Revision: 138024 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138024 Log: /cp 2008-07-21 Paolo Carlini <[EMAIL PROTECTED]> PR c

[Bug c++/36870] __has_nothrow_constructor violates the ODR

2008-07-21 Thread paolo dot carlini at oracle dot com
--- Comment #14 from paolo dot carlini at oracle dot com 2008-07-21 09:11 --- Done for mainline (would be 4.4.0). -- paolo dot carlini at oracle dot com changed: What|Removed |Added -

[Bug fortran/33141] Intrinsic procedures: Improve warning/error with -std=*

2008-07-21 Thread domob at gcc dot gnu dot org
--- Comment #4 from domob at gcc dot gnu dot org 2008-07-21 10:02 --- Created an attachment (id=15935) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15935&action=view) Proposed test cases Here's a set of test-cases (as diff) as I plan to fix this bug (dg-format may not yet be corr

[Bug libfortran/36773] zero-sized arrays with cshift and eoshift

2008-07-21 Thread tkoenig at gcc dot gnu dot org
--- Comment #4 from tkoenig at gcc dot gnu dot org 2008-07-21 10:06 --- Subject: Bug 36773 Author: tkoenig Date: Mon Jul 21 10:05:32 2008 New Revision: 138027 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138027 Log: 2008-07-21 Thomas Koenig <[EMAIL PROTECTED]> PR li

[Bug libfortran/36773] zero-sized arrays with cshift and eoshift

2008-07-21 Thread tkoenig at gcc dot gnu dot org
--- Comment #5 from tkoenig at gcc dot gnu dot org 2008-07-21 10:08 --- Fixed on trunk. Closing. -- tkoenig at gcc dot gnu dot org changed: What|Removed |Added

[Bug libfortran/36886] New: misaligment for cshift of character

2008-07-21 Thread tkoenig at gcc dot gnu dot org
array->data and ret->data are not divisible by four in this test case, yet we use ints for copying. Not too bad on a i686, very bad on systems that enforce alignment. $ cat cshift-char.f90 program main character(len=2) :: c2 character(len=4), dimension(2,2) :: a, b, c, d ! Force misalignmen

[Bug middle-end/36826] [4.4 Regression] ICE in fold_convert, at fold-const.c:2528

2008-07-21 Thread rguenth at gcc dot gnu dot org
--- Comment #5 from rguenth at gcc dot gnu dot org 2008-07-21 11:17 --- Subject: Bug 36826 Author: rguenth Date: Mon Jul 21 11:16:38 2008 New Revision: 138028 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138028 Log: 2008-07-21 Richard Guenther <[EMAIL PROTECTED]> PR

[Bug preprocessor/36887] New: Please report #pragma GCC poison" location

2008-07-21 Thread h dot b dot furuseth at usit dot uio dot no
The warning -- Summary: Please report #pragma GCC poison" location Product: gcc Version: unknown Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: preprocessor AssignedTo: unassigned at gcc dot gnu

[Bug middle-end/26061] error and warning count

2008-07-21 Thread hyperquantum at gmail dot com
--- Comment #20 from hyperquantum at gmail dot com 2008-07-21 11:32 --- (In reply to comment #19) > I really don't want to make it default off as it's really useful. I hope to > fix > the patch and make it default on for gcc 4.4 at least. I agree. What's the status for getting it into

[Bug preprocessor/36887] Please report #pragma GCC poison" location

2008-07-21 Thread h dot b dot furuseth at usit dot uio dot no
--- Comment #1 from h dot b dot furuseth at usit dot uio dot no 2008-07-21 11:36 --- Subject: Re: New: Please report #pragma GCC poison" location Sorry about the empty report. Anyway: The warning a.c:2:5: attempt to use poisoned "foo" is not intelligle if one does not know about

[Bug fortran/33141] Intrinsic procedures: Improve warning/error with -std=*

2008-07-21 Thread burnus at gcc dot gnu dot org
--- Comment #5 from burnus at gcc dot gnu dot org 2008-07-21 11:37 --- For the "INTRINSIC :: " error, one could consider mentioning "-fall-intrinsics" in the error message. Regarding intrinsic subroutine and external/user-supplied function (and vice versa): I think it is OK to not to wa

[Bug fortran/33141] Intrinsic procedures: Improve warning/error with -std=*

2008-07-21 Thread domob at gcc dot gnu dot org
--- Comment #6 from domob at gcc dot gnu dot org 2008-07-21 12:17 --- (In reply to comment #5) > For the "INTRINSIC :: " error, one could consider mentioning > "-fall-intrinsics" > in the error message. I'll do so (as I already do in the warning message), this makes of course sense. >

[Bug tree-optimization/36830] [4.4 Regression] STORAGE_ERROR raised compiling s-os_lib.adb

2008-07-21 Thread andreasmeier80 at gmx dot de
--- Comment #5 from andreasmeier80 at gmx dot de 2008-07-21 12:55 --- For me it is working today -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36830

[Bug middle-end/35696] Segmentation fault

2008-07-21 Thread sam dot hendley at plymouthsystems dot com
--- Comment #5 from sam dot hendley at plymouthsystems dot com 2008-07-21 13:51 --- Hello, I would like to report that I have had the same type of issue. I run into this issue only when compiling with the coverage flags turned on. Here is the output (inlcuding the location and version o

[Bug c++/36888] New: Error message when forgetting a semicolon after a class definition should be better

2008-07-21 Thread bero at arklinux dot org
Compiling the following code: 1 class a { 2 // lots of stuff here 3 } // <--- actual error is here: missing semicolon 4 5 6 class b { 7 // lots of stuff here 8 }; results in test.cpp:8: error: multiple types in one declaration making someone who hasn't been ex

[Bug c++/19808] miss a warning about uninitialized members in constructor

2008-07-21 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2008-07-21 14:30 --- *** Bug 36866 has been marked as a duplicate of this bug. *** -- manu at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/36866] lack of warning when initializing a class member from an uninitialized variable

2008-07-21 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2008-07-21 14:30 --- To fix this testcase we would need to fix a few of the -Wuninitialized issues, since -Wuninitialized does not work without optimisation, we don't handle VOPs (no -Wunitialized for pointers then), and -Winit-self is brok

[Bug fortran/33141] Intrinsic procedures: Improve warning/error with -std=*

2008-07-21 Thread burnus at gcc dot gnu dot org
--- Comment #7 from burnus at gcc dot gnu dot org 2008-07-21 14:31 --- > Regarding -Wnonstd-intrinsic, what should I do there? It is ignored now, and > I'll change this in the documentation (as well as mentioning the new flags, of > course); but do I also have to add some "deprecated" f

[Bug preprocessor/36887] Please report #pragma GCC poison" location

2008-07-21 Thread tromey at gcc dot gnu dot org
--- Comment #2 from tromey at gcc dot gnu dot org 2008-07-21 14:36 --- Seems like a reasonable idea to me. -- tromey at gcc dot gnu dot org changed: What|Removed |Added

[Bug testsuite/36889] New: [4.4 regression] gfortran.fortran-torture/execute/execute.exp tries to run sse2 execute tests without checking for host support

2008-07-21 Thread brian at dessent dot net
Apparently something in the recent reorganization of the computation of fortran torture options has caused -msse2 execute tests to be run without checking if the host supports sse2: $ egrep '^flags' /proc/cpuinfo flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat p

[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2

2008-07-21 Thread dodji at gcc dot gnu dot org
--- Comment #4 from dodji at gcc dot gnu dot org 2008-07-21 15:31 --- Okay, I could reproduce this on gcc-4_3-branch. I will work on it, if nobody is working on it already. -- dodji at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c++/36767] [4.3/4.4 Regression] Segmentation fault with -fprofile-arcs -O2

2008-07-21 Thread dodji at gcc dot gnu dot org
--- Comment #5 from dodji at gcc dot gnu dot org 2008-07-21 15:43 --- By the way, I cannot reproduce this on trunk, changeset 138026. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36767

[Bug c/36708] syntatic warning

2008-07-21 Thread manu at gcc dot gnu dot org
--- Comment #2 from manu at gcc dot gnu dot org 2008-07-21 16:16 --- We need a complete testcase. I tried to reproduce this but GCC 4.4 with -Wall -Wextra -Wunused always says: src/pr36708.c:5: warning: left-hand operand of comma expression has no effect src/pr36708.c:5: warning: statem

[Bug c++/4898] adding an option to verify exception specifications

2008-07-21 Thread sebor at roguewave dot com
--- Comment #2 from sebor at roguewave dot com 2008-07-21 16:17 --- I agree a new warning would be useful. For example, the following code should be diagnosed: struct S { S () throw () { throw 0; } }; as should this: struct S { S () throw (int) { throw ""; } }; -- http://gcc.gnu.

[Bug c++/36871] __has_nothrow_copy(T) false for T with a template ctor

2008-07-21 Thread paolo at gcc dot gnu dot org
--- Comment #3 from paolo at gcc dot gnu dot org 2008-07-21 16:19 --- Subject: Bug 36871 Author: paolo Date: Mon Jul 21 16:18:38 2008 New Revision: 138034 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138034 Log: /cp 2008-07-21 Paolo Carlini <[EMAIL PROTECTED]> PR c+

[Bug c++/36872] __has_nothrow_copy(T) false for T with a throwing vararg ctor

2008-07-21 Thread paolo at gcc dot gnu dot org
--- Comment #5 from paolo at gcc dot gnu dot org 2008-07-21 16:19 --- Subject: Bug 36872 Author: paolo Date: Mon Jul 21 16:18:38 2008 New Revision: 138034 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=138034 Log: /cp 2008-07-21 Paolo Carlini <[EMAIL PROTECTED]> PR c+

[Bug c++/36871] __has_nothrow_copy(T) false for T with a template ctor

2008-07-21 Thread paolo dot carlini at oracle dot com
--- Comment #4 from paolo dot carlini at oracle dot com 2008-07-21 16:20 --- Fixed for 4.4.0. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/36872] __has_nothrow_copy(T) false for T with a throwing vararg ctor

2008-07-21 Thread paolo dot carlini at oracle dot com
--- Comment #6 from paolo dot carlini at oracle dot com 2008-07-21 16:21 --- Fixed for 4.4.0. -- paolo dot carlini at oracle dot com changed: What|Removed |Added

[Bug c++/31754] Improve column number accuracy in error messages

2008-07-21 Thread manu at gcc dot gnu dot org
--- Comment #20 from manu at gcc dot gnu dot org 2008-07-21 16:32 --- (In reply to comment #19) > Okay, so the two patches are now committed to trunk in changesets > r137716 and r137721. > > However, given the nature of this enhancement request, I think it will take > some on going wor

[Bug fortran/36890] New: libgfortran/io/file_pos.c:55: warning: comparison between signed and unsigned

2008-07-21 Thread burnus at gcc dot gnu dot org
Reported on IRC: ../../../gcc/libgfortran/io/file_pos.c: In function 'formatted_backspace': ../../../gcc/libgfortran/io/file_pos.c:55: warning: comparison between signed and unsigned ../../../gcc/libgfortran/io/file_pos.c:55: warning: signed and unsigned type in conditional expression --

[Bug tree-optimization/36891] New: ICE with vector division and -ffast-math and LIM

2008-07-21 Thread pinskia at gcc dot gnu dot org
I don't know if this is a regression or not but I think it is. Anyways testcase compile with -O2 -msse -ffast-math: #define __vector __attribute__((vector_size(16) )) __vector float f(void); void g(__vector float); void RRB( __vector float vdist, __vector float vx) { for(unsigned detail = 0; deta

[Bug tree-optimization/36891] ICE with vector division and -ffast-math and LIM

2008-07-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-21 18:59 --- The same ICE also happens for SPU-elf. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --

[Bug c/36892] New: Support __attribute__((deprecated(.text string.)))

2008-07-21 Thread hjl dot tools at gmail dot com
MS provides __declspec(deprecated("text string")) while GCC doesn't support "text string". It will be nice to support __attribute__((deprecated("text string"))) -- Summary: Support __attribute__((deprecated(.text string.))) Product: gcc Version: 4.4.0

[Bug libstdc++/36893] New: iterator copying doesn't work for debug mode unordered_multimap

2008-07-21 Thread jason at gcc dot gnu dot org
This testcase: #include using namespace std; int main() { typedef unordered_multimap mmap; typedef mmap::const_iterator citer; mmap m; citer i = m.find(0); } compiles fine with the normal mode unordered_multimap, but fails to compile with -D_GLIBCXX_DEBUG. -- Summary: ite

[Bug libstdc++/36893] iterator copying doesn't work for debug mode unordered_multimap

2008-07-21 Thread paolo dot carlini at oracle dot com
--- Comment #1 from paolo dot carlini at oracle dot com 2008-07-21 19:54 --- Thanks a lot Jason. I think this is essentially the same issue analyzed in the audit trail of 30085, we should really work on it ASAP. -- paolo dot carlini at oracle dot com changed: What|Re

[Bug fortran/36894] New: question on gfortran character*(*)

2008-07-21 Thread jhuddleston at hughes dot net
I have older fortran libraries supported by federal people that use the character*(*) input_string for an incoming string, The gcc 3.4.4 supports it but the current (subversion 138025) seems to support character(*). I was wondering if this is a command line argument to support older fortran code?

[Bug fortran/36894] question on gfortran character*(*)

2008-07-21 Thread dfranke at gcc dot gnu dot org
--- Comment #1 from dfranke at gcc dot gnu dot org 2008-07-21 20:29 --- This is not a support forum, sorry. Without code example or more specific problems we can't help you here. You might want to ask the comp.lang.fortran newsgroup instead, ideally with a small code example of your pro

[Bug fortran/29952] Flag to give runtime information " array temporary was created for argument"

2008-07-21 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-07-21 21:40 --- Created an attachment (id=15936) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15936&action=view) patch for compile-time check This passes regression-tests, make info and make dvi. All that's needed is a prop

[Bug c++/36888] Error message when forgetting a semicolon after a class definition should be better

2008-07-21 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2008-07-21 23:25 --- >test.cpp:8: error: multiple types in one declaration What more do you want? Because it says what is happen, there are more than one type in the declaration. -- pinskia at gcc dot gnu dot org changed:

[Bug middle-end/36884] ifcvt poor optimization

2008-07-21 Thread hutchinsonandy at gcc dot gnu dot org
--- Comment #2 from hutchinsonandy at gcc dot gnu dot org 2008-07-22 02:37 --- 4.2.2 has same issue. Can someone benchmark -fno-if-conversion for AVR? Transforms are made independent of target. BRANCH_COST is already 0 for avr. Here is a related example. This time result is a power

[Bug fortran/36582] Namelist I/O error: Bogus "Cannot match namelist object"

2008-07-21 Thread jvdelisle at gcc dot gnu dot org
--- Comment #12 from jvdelisle at gcc dot gnu dot org 2008-07-22 05:02 --- Finally had some quiet time to pick at this. Yep, a one liner. This fixes the test case and no namelist regressions. Index: list_read.c === --- l

[Bug c/36708] syntatic warning

2008-07-21 Thread robert dot lore at opensyscon dot com dot au
--- Comment #3 from robert dot lore at opensyscon dot com dot au 2008-07-22 05:56 --- Subject: RE: syntatic warning I did not have the flags you nominated set. Thanks for you assistance Robert -Original Message- From: manu at gcc dot gnu dot org [mailto:[EMAIL PROTECTED] Sen

[Bug fortran/36894] question on gfortran character*(*)

2008-07-21 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2008-07-22 06:48 --- Both character*(*) foo character(*) foo are supported by gfortran. At the moment I cannot imagine a program which works with the latter and fails with the former. If you have a complete (short!) example, we cou