[Bug bootstrap/33306] New: [4.3 regression] Bootstrap failure on Tru64 UNIX V5.1B: ICE in convert_move, at expr.c:369

2007-09-04 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping current mainline as of 20070903 fails on alpha-dec-osf5.1b building the stage 1 libgcc: /vol/gccsrc/obj/gcc-4.3.0-20070903/5.1b-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.3.0-20070903/5.1b-gcc/./gcc/ -B/vol/gcc/alpha-dec-osf5.1b/bin/ -B/vol/gcc/alpha-dec-osf5.1b/lib/ -isystem /vol/gcc/a

[Bug c++/33468] New: C++: Invalid interpretation of friendness with nested classes

2007-09-18 Thread gcc-bugzilla at gcc dot gnu dot org
Gcc's friend-mechanism seems to expand to nested classes as well, although the C++ standard explicitly tells differently. The following example is almost straight from the C++ standard (11.4/2). The only change is that inheritance is commented out for class X (in order to remove the first error i

[Bug c/33519] New: Invalid code generated with a combination of thumb, AAPCS and -Os.

2007-09-21 Thread gcc-bugzilla at gcc dot gnu dot org
GCC generates odd code sequence.. Part of the source (full source in attachment): usbd_status usbd_do_request_flags_pipe(usbd_device_handle dev, usbd_pipe_handle pipe, usb_device_request_t *req, void *data, u_int16_t flags, int *actlen, u_int32_t timeout) { usbd_xfer_hand

[Bug c/19988] New: [4.0 Regression] pessimizes fp multiply-add/subtract combo

2005-02-15 Thread gcc-bugzilla at gcc dot gnu dot org
When I compile the following code with 'gcc -O3 --save-temps -c': double foo(double x, double y) { return ((x + 0.1234 * y) * (x - 0.1234 * y)); } gcc 3.x gives one load of the constant 0.1234, one multiplication 0.1234 * y, one addition, one subtraction, and the final multiplication: total

[Bug other/20055] New: Many source files are unnecessarily executable

2005-02-18 Thread gcc-bugzilla at gcc dot gnu dot org
I just noticed that many source files are unnecessarily marked executable. This needs to be fixed by someone with direct access to the CVS repository. The list below is pruned of anything which obviously needs to be executable,, like configure scripts etc. boehm-gc/AmigaOS.c boehm-gc/cord/de_win

[Bug c++/20062] New: hash_map leak memory

2005-02-18 Thread gcc-bugzilla at gcc dot gnu dot org
hash_map implementation of g++ extensions of STL leaks memory Environment: System: Linux rose 2.6.8-2004 #2 SMP Wed Nov 24 11:15:13 CET 2004 i686 GNU/Linux Architecture: i686 host: i486-pc-linux-gnu build: i486-pc-linux-gnu target: i486-pc-linux-gnu configured with: ../src/

[Bug fortran/20178] New: COMPLEX function returns incompatible with g77

2005-02-23 Thread gcc-bugzilla at gcc dot gnu dot org
A function returning a COMPLEX value cannot be compiled in g77 and called from gfortran (or vice versa) - doing so results in a segfault or incorrect results. (See test case below.) This is a problem, since for the near future g77 and gfortran are likely to coexist on many systems, and incompat

[Bug fortran/20179] New: cannot mix C and Fortran I/O

2005-02-23 Thread gcc-bugzilla at gcc dot gnu dot org
When calling a C library from a gfortran-compiled program, C stdio is only partially written. Ability to mix languages as needed is really important in many practical applications these days, so this would be nice to fix. I suspect that there is simply a missing fflush (or similar) somewhere, si

[Bug target/20263] New: Incorrect asm for global register vars on sparc64

2005-03-01 Thread gcc-bugzilla at gcc dot gnu dot org
Using a global variable tied to register g7 generates invalid assembly code on sparc64. Consider: register void *tp __asm__("%g7"); void set_tp() { tp = 0; } Compiling this file produces an error and a warning from the assembler: /usr/ccs/bin/as: "/var/tmp//ccLsIpQg.s"

[Bug debug/20268] New: g++ generates incomplete debug information for given testcase

2005-03-01 Thread gcc-bugzilla at gcc dot gnu dot org
It appears that g++ is generating incorrect scope debug information for inlined functions. One symptom of this is that addr2line will generate inconsistent results for the affected address ranges, showing the correct line information for the inlined function, but showing the function name as the

[Bug c/20272] New: AltiVec vector instructions fail unless compiled with -force_cpusubtype_ALL

2005-03-01 Thread gcc-bugzilla at gcc dot gnu dot org
On MacOS 10.3, when I compile Altivec programs that use certain builtins, in particular the vec_ste() function, specifying -faltivec and/or -mcpu=7400, gcc-4.1-20050227 gives me the following error: /var/tmp//ccpZcozX.s:16:lvx vector instruction is optional for the PowerPC (not allowed without

[Bug c++/20324] New: Tru64 assembler cores for 3.4.3 g++ -gcoff of #include

2005-03-04 Thread gcc-bugzilla at gcc dot gnu dot org
On a Tru64 alpha system, when I compile a file containing: #include using g++ 3.4.3 as follows: g++ -c -gcoff I get the following output: mips-tfile, /tmp//ccnFchPc.s:1071 compiler error, badly formed #.def (internal line # = 2812)

[Bug c++/20366] New: AIX g++ -D_LARGE_FILES fails to compile #include

2005-03-07 Thread gcc-bugzilla at gcc dot gnu dot org
The compiler's C++ headers do not appear to work properly on AIX when the compiler is run with -D_LARGE_FILES. This macro causes the system headers to #define symbols like fopen, while the C++ headers unconditionally #undef these symbols. Environment: System: AIX

[Bug target/20415] New: Vector init builtin produces invalid instruction pshufw

2005-03-10 Thread gcc-bugzilla at gcc dot gnu dot org
__builtin_ia32_vec_init_v4hi and __builtin_ia32_vec_init_v8qi produce the pshufw instruction when compiled with -O2 and any of the switches -mmmx, -m3dnow, -march=pentium-mmx, -march=pentium2, -march=k6, -march=k6-2, i.e. targeting CPUs which do not support SSE. Environment: System: Linux localho

[Bug c/20573] New: unable to use cast to suppress "warning: comparison is always false due to limited range of data type"

2005-03-20 Thread gcc-bugzilla at gcc dot gnu dot org
There doesn't seem to be an easy way to suppress this warning in a macro like #define MILL(in) ((in) > 100) where the macro may be passed different sizes of ints including shorts. I would have expected the warning to be suppressed when a cast is present like: #define MILL(in) ((int)(in) > 1000

[Bug c++/37047] New: Missing warning for deprecated use of static

2008-08-07 Thread gcc-bugzilla at contacts dot eelis dot net
at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37047

[Bug c++/37087] New: Segfault on compiling template defined in wrong namespace.

2008-08-11 Thread gcc-bugzilla at gcc dot gnu dot org
G++ reports a segmentation fault when compiling the code below. Environment: System: Linux temporal.corp.google.com 2.6.18.5-gg34workstation-mixed64-32 #1 SMP Thu May 8 01:31:23 UTC 2008 x86_64 GNU/Linux Architecture: x86_64 host: i486-pc-linux-gnu build: i486-pc-linux-gnu target: i486-pc-linux-

[Bug c++/37119] New: sizeof simple struct consisting of bit-fields too large and unpredictable

2008-08-13 Thread gcc-bugzilla at contacts dot eelis dot net
Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net GCC host triplet: x86_64-pc-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37119

[Bug c++/37119] sizeof simple struct consisting of bit-fields too large and unpredictable

2008-08-13 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #2 from gcc-bugzilla at contacts dot eelis dot net 2008-08-13 21:39 --- (In reply to comment #1) > so 26bits which is a little over 4 bytes. I don't follow. 4 bytes is 4*8=32 bits, which is more than 26, no? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37119

[Bug c++/37119] sizeof simple struct consisting of bit-fields too large and unpredictable

2008-08-13 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #9 from gcc-bugzilla at contacts dot eelis dot net 2008-08-13 22:24 --- Ok, I see. Sorry for wasting your time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37119

[Bug c++/36734] Incorrect access to tyedef in base of template class.

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #1 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 11:35 --- It seems access control for templates is broken at a more basic level than the reporter's testcase suggests; witness the following simplified testcase: class A { typedef int X; }; template s

[Bug c++/36430] Cannot convert a temporary to a non-const reference even with conversion operator

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #1 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 11:43 --- This report is invalid. By 12.3.2, "A conversion function is never used to convert a (possibly cv-qualified) object to the (possibly cv-qualified) same object type (or a reference

[Bug c++/36734] Incorrect access to tyedef in base of template class.

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #2 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 11:53 --- Most likely related to bug 26693. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36734

[Bug c++/32039] Using declaration accepts non-visible members from base classes

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #1 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 12:00 --- Still accepted by 4.4. Comeau concurs with reporter, and rejects saying: line 15: error: class member designated by a using-declaration must be visible in a direct base class -- gcc-bugzilla

[Bug c++/34121] wrong this pointer passed to constructor of temporary object

2008-08-21 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #4 from gcc-bugzilla at contacts dot eelis dot net 2008-08-21 12:51 --- Isolated and reproduced with GCC 4.4 on x86_64: #include #include struct A { uint64_t p; char m_ac[18]; A() { std::cout << "default constructed at " <<

[Bug c++/37204] New: reinterpret_cast(v) incorrectly yields an lvalue

2008-08-22 Thread gcc-bugzilla at contacts dot eelis dot net
value Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37204

[Bug c++/37206] New: [c++0x] Spurious copy/move requirement for initialization of rvalue reference variable from rvalue initializer.

2008-08-22 Thread gcc-bugzilla at contacts dot eelis dot net
NFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37206

[Bug c++/37047] Missing warning for deprecated use of static

2008-08-22 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #4 from gcc-bugzilla at contacts dot eelis dot net 2008-08-23 02:58 --- (In reply to comment #3) > Where is the namespace scope in the example? >From the standard, 3.3.5p3: The outermost declarative region of a translation unit is also a namespace, called the

[Bug preprocessor/37215] New: ICE on 'gcc -E -dM -fpreprocessed - < /dev/null'

2008-08-23 Thread gcc-bugzilla at gcc dot gnu dot org
Executing 'gcc -E -dM -fpreprocessed - < /dev/null' gives: :1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Environment: System: L

[Bug target/37808] [4.4 Regression]: Revision 141067 breaks Linux/x86

2008-10-12 Thread gcc-bugzilla at daryl dot haresign dot com
--- Comment #4 from gcc-bugzilla at daryl dot haresign dot com 2008-10-12 16:57 --- (In reply to comment #3) > Created an attachment (id=16485) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16485&action=view) [edit] > possible patch to fix the problem > > I

[Bug c++/37875] New: [c++0x] misinterpreted closing angle bracket in decltype operand

2008-10-20 Thread gcc-bugzilla at contacts dot eelis dot net
FIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37875

[Bug pending/37879] New: g++: internal compiler error: Segmentation fault

2008-10-21 Thread gcc-bugzilla at gcc dot gnu dot org
NOTE: Defaulting component because reported component no longer exists ICE: Segmentation fault when compiling with an incorrect used __attribute__((noreturn)); Environment: System: Linux molybdaen 2.6.26-1-686 #1 SMP Wed Sep 10 16:46:13 UTC 2008 i686 GN U/Linux host: i486-pc-linux-gnu bui

[Bug c++/38020] New: Undiagnosed const violation in pointer conversion in CRTP context.

2008-11-05 Thread gcc-bugzilla at contacts dot eelis dot net
oduct: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38020

[Bug java/38075] New: Scanner(System.in) causes next*() to behave incorrectly

2008-11-10 Thread gcc-bugzilla at gcc dot gnu dot org
When the below code (see How-To-Repeat) is compiled and run, the program waits for input after initializing the Scanner. That input is then returned to the first input.next() call, and each input.next() call returns the user input given during the previous call. Environment: System: Linux hybrid

[Bug c++/34977] New: GCC 3.4.6 link fails with undefined reference to .hidden symbol __floatdidf (libgcc.a)

2008-01-25 Thread gcc-bugzilla at gcc dot gnu dot org
Building Regina-REXX-3.4 from source distribution. The linker fails with the following error: /usr/local/bin/gcc -O2 -I/usr/local/include -pthreads -L/usr/local/lib -o execiser32 execiser.o -L. -lregina -lfl -lm -lnsl -lsocket -lcrypt -ldl -lpthread /usr/local/bin/ld: execiser32: hi

[Bug c++/35021] New: g++ fails to compile legal template code involving templatized methods

2008-01-29 Thread gcc-bugzilla at gcc dot gnu dot org
g++ is unable to compile a call to a templatized method from a template function that takes the class that contains the templatized methods as a template parameter. Environment: System: Linux bnell-deb4-64 2.6.18-4-amd64 #1 SMP Mon Mar 26 11:36:53 CEST 2007 x86_64 GNU/Linux Architecture: x86_64

[Bug java/35020] New: Class.getSimpleName() differs from Sun Java

2008-01-29 Thread gcc-bugzilla at matthew dot ath dot cx
AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at matthew dot ath dot cx http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35020

[Bug c++/35153] New: Taking address of result of calling function returning rvalue reference should not compile.

2008-02-10 Thread gcc-bugzilla at contacts dot eelis dot net
dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35153

[Bug c++/35650] New: Can't bind ref-to-function through using-decl. in namespace

2008-03-20 Thread gcc-bugzilla at contacts dot eelis dot net
atus: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35650

[Bug c++/35678] New: partial template specialization ICE in dependent_type_p, at cp/pt.c:15539

2008-03-24 Thread gcc-bugzilla at contacts dot eelis dot net
nt_type_p, at cp/pt.c:15539 Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts

[Bug c++/35784] New: Bogus inaccessibility error on variadic partial template specialization.

2008-03-31 Thread gcc-bugzilla at contacts dot eelis dot net
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35784

[Bug libobjc/39465] New: libobjc does not find classes of DLLs

2009-03-15 Thread gcc-bugzilla at gcc dot gnu dot org
When building a program that uses an objc library as a DLL, libobjc can't find its classes. When the program and the library are statically linked, it works. My libobjc itself is linked as a static library. Environment: System: Linux asgard.webkeks.org 2.6.28.5 #1

[Bug target/41551] New: ia64: ICE: in instantiate_virtual_regs_in_insn, at function.c:1630

2009-10-02 Thread gcc-bugzilla at gcc dot gnu dot org
ICE on ia64 at -O1 and higher, seen with gcc 4.3 and 4.4 but not 4.2. % gcc -O -c t.c t.c: In function 'main': t.c:5:1: error: unrecognizable insn: (insn 5 4 6 3 t.c:3 (set (reg:DF 344) (unsigned_float:DF (reg/f:DI 328 sfp))) -1 (nil)) t.c:5:1: internal compiler error: in instantiate_virtu

[Bug c++/31816] New: If a function foo is defined before declaring a template class A, overloaded version of foo defined after the class declaration will not be available within class A.

2007-05-04 Thread gcc-bugzilla at gcc dot gnu dot org
Let us consider the following code: - void qHash(double) {} template struct QSet { void foo() { qHash(T()); } }; // void qHash(double) {} // ok if placed here void qHash(int*) {} int main() { QSet s; s.foo(); // ok QSet sp; sp.foo(); // do not compile, qHash(int*) is no

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

2007-06-08 Thread gcc-bugzilla at gcc dot gnu dot org
When Linux vanilla kernel 2.4.34.5 is compiled with -march=c3 (VIA C3) - kernel crashes after boot on a VIA C3 .config: CONFIG_MCYRIXIII=y Environment: System: Linux bongo 2.4.34.5-ARXc3 COHERENT #9-ARX (Build 3359) Fri Jun 8 16:41:33 CEST 2007 i686 i686 i386 GNU/Linux Architectur

[Bug c++/32325] New: cc1plus ICE configuring libstdc++ on Tru64 UNIX V5.1B: SEGV in rtl_verify_flow_info

2007-06-13 Thread gcc-bugzilla at gcc dot gnu dot org
During a mainline bootstrap on alpha-dec-osf5.1b, the libstdc++ configure failed: checking for exception model to use... configure: error: unable to detect exception model make[1]: *** [configure-target-libstdc++-v3] Error 1 config.log reveals: configure:13794: checking for exception model to u

[Bug libfortran/32345] New: Unconditional snprintf use breaks all gfortran exec tests on Tru64 UNIX V4.0F

2007-06-14 Thread gcc-bugzilla at gcc dot gnu dot org
All gfortran execute tests fail on alpha-dec-osf4.0f since snprintf is missing in libc, but used in libgfortran. Environment: System: OSF1 hindemith V4.0 1229 alpha Machine: alpha host: alpha-dec-osf4.0f build: alpha-dec-osf4.0f target: alpha-dec-osf4.0f configured with: /vol/gcc/src/gcc-dist/co

[Bug pending/32403] New:

2007-06-19 Thread gcc-bugzilla at gcc dot gnu dot org
NOTE: Defaulting component because reported component no longer exists Environment: System: Linux marko2 2.6.15-28-686 #1 SMP PREEMPT Thu Feb 1 16:14:07 UTC 2007 i686 GNU/Linux Architecture: i686 host: i486-pc-linux-gnu build: i486-pc-linux-gnu target: m68hc11-unknown-none configured with: ../s

[Bug libgcj/32462] New: Linking libgcj.so fails on Solaris 10/x86

2007-06-22 Thread gcc-bugzilla at gcc dot gnu dot org
A mainline bootstrap as of 20070618 on Solaris 10/x86 with the bundled gas 2.15 fails to link libgcj.so: ld: fatal: relocation error: R_386_GOTOFF: file java/.libs/process-Posix.o: symbol java::lang::PosixProcess::queueLock: relocation must bind locally collect2: ld returned 1 exit status make[3]

[Bug libgcj/32465] New: Linking 64-bit libgcj.so fails on Solaris 10/x86: non-PIC code despite -fPIC

2007-06-22 Thread gcc-bugzilla at gcc dot gnu dot org
A mainline bootstrap as of 20070618 on Solaris 10/x86 with the bundled gas 2.15 and my patch to support boehm-gc for x86-64 http://gcc.gnu.org/ml/java-patches/2007-q2/msg00330.html fails when linking the 64-bit libgcj: [ca. 6800 lines omitted] gnu::gcj::runtime::FinalizerThread::finalizer_

[Bug libstdc++/32499] New: libstdc++ testsuite fails on platforms without ranlib

2007-06-25 Thread gcc-bugzilla at gcc dot gnu dot org
I noticed that the libstdc++ testsuite fails to run on mips-sgi-irix6.5 and mips-sgi-irix5.3:: ERROR: tcl error sourcing /vol/gcc/src/gcc-dist/libstdc++-v3/testsuite/libstdc++-abi/abi.exp. ERROR: could not link libtestc++.a while executing "error "could not link libtestc++.a"" (procedure

[Bug c/32536] New: wrong generated code on complex statement;

2007-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
sample code: #include int main() { char cp[2]; cp[0] = 'A'; cp[1] = 'B'; printf("%x %x\n",cp[0],cp[1]); cp[0] ^= (cp[1]^=(cp[0]^=cp[1])); printf("%x %x\n",cp[0],cp[1]); return 0; } The complex byte swapping instruction is far fetched but seems legal. It actually swaps bytes if c

[Bug libgomp/32538] New: All libgomp tests fail to link on IRIX 6: copysignl undefined

2007-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
All libgomp tests fail to link on IRIX 6: Executing on host: /vol/gcc/obj/gcc-4.3.0-20070622/6.5-gcc/gcc/xgcc -B/vol/gcc/obj/gcc-4.3.0-20070622/6.5-gcc/gcc/ /vol/gcc/src/gcc-dist/libgomp/testsuite/libgomp.fortran/appendix-a/a.16.1.f90 -B/vol/gcc/obj/gcc-4.3.0-20070622/6.5-gcc/mips-sgi-irix6.5/./

[Bug ada/32547] New: gnat.dg tasking tests fail on IRIX 5.3

2007-06-29 Thread gcc-bugzilla at gcc dot gnu dot org
All gnat.dg tasking tests FAIL on IRIX 5.3 since the platform lacks thread support: failed run-time assertion : Tasking not implemented on this configuration FAIL: gnat.dg/curr_task.adb execution test Instead of failing, the tests should be marked UNSUPPORTED as is done for ACATS. Environment:

[Bug ada/32548] New: gnat.dg tests for non-default multilib fail

2007-06-29 Thread gcc-bugzilla at gcc dot gnu dot org
When running the gnat.dg tests on multilib-targets (like sparc-sun-solaris2*, i386-pc-solaris2*, or mips-sgi-irix6*), most tests for a non-default multilib fail with confusing error messages: Running /vol/gcc/src/gcc/gcc/testsuite/gnat.dg/dg.exp ... Executing on host: /vol/gccsrc/obj/gcc-4.3.0-20

[Bug libgcj/32651] New: [4.2/4.3 regression] libjava fails to build on IRIX 6.5

2007-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
On both the 4.2 branch and mainline, libjava fails to build on mips-sgi-irix6.5: * sysdeps_dir isn't set in configure.host, so the generic locks.h is used which just errors out * libgcj_interpreter is set to yes in the general mips-* clause in configure.host, but this cannot work for IRIX 6

[Bug libgcj/32652] New: [4.3 regression] libgcj fails to build with --disable-interpreter

2007-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
Even with the fix for PR libgcj/32651 (which sets libgcj_interpreter=no), libgcj doesn't build on IRIX 6.5 (or any other platform) because several types and classes from java-interp.h are used even with INTERPRETER undefined. This is a regression from 4.1 and 4.2 and can easily be reproduced with

[Bug ada/32654] New: [4.2 regression] Ada comparison failure in exp_aggr.o on Tru64 UNIX V5.1B

2007-07-06 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping the current 4.2 branch on alpha-dec-osf5.1b with GCC 3.4 as the bootstrap compiler, I get a comparison failure in exp_aggr.o: Comparing stages 2 and 3 Bootstrap comparison failure! ./ada/exp_aggr.o differs make[2]: *** [compare] Error 1 There's only a minimal difference in the debu

[Bug bootstrap/32744] New: [4.3 regression] ICE in build2_stat, at tree.c:3077 bootstrapping on Tru64 UNIX

2007-07-12 Thread gcc-bugzilla at gcc dot gnu dot org
On both alpha-dec-osf4.0f and alpha-dec-osf5.1b, current mainline (as of r126588) fails to bootstrap: /vol/gccsrc/obj/gcc-4.3.0-20070712/4.0f-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.3.0-20070712/4.0f-gcc/./gcc/ -B/vol/gcc/alpha-dec-osf4.0f/bin/ -B/vol/gcc/alpha-dec-osf4.0f/lib/ -isystem /vol/gcc/a

[Bug bootstrap/32745] New: [4.3 regression] ICE in set_expression_vuses at tree-ssa-pre.c:265 on Solaris 10/SPARC

2007-07-12 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping mainline on sparc-sun-solaris2.10 as of r126588 fails building the sparcv9 stage2 libgcc: /vol/gccsrc/obj/gcc-4.3.0-20070712/10-gcc/./gcc/xgcc -B/vol/gccsrc/obj/gcc-4.3.0-20070712/10-gcc/./gcc/ -B/vol/gcc/sparc-sun-solaris2.10/bin/ -B/vol/gcc/sparc-sun-solaris2.10/lib/ -isystem /vol

[Bug c++/23730] New: ICE instead of reporting a call to a non existant member function

2005-09-05 Thread gcc-bugzilla at gcc dot gnu dot org
G++ dies instead of reporting a clear error message. This is a regression as compared to 3.3 I'm afraid I can't currently upgrade to 4.1, so I can't tell if this is still a problem... Environment: System: Linux nostromo 2.4.27-1-686 #1 Wed Dec 1 19:57:47 JST 2004 i686 GNU/Linux Architecture:

[Bug middle-end/23775] New: 4.1: wrong code in argument passing

2005-09-07 Thread gcc-bugzilla at gcc dot gnu dot org
On a i686 platform, the example below is miscompiled with -O1. I expect this program to print -0.96. Here's what it actually does: $ g++ -O1 -o y y.cc $ ./y -1.288766 $ g++ -o y y.cc $ ./y -0.96 $ The value that the optimized version prints is actually different on each run of the program

[Bug rtl-optimization/23810] New: missed 64-bit shift+mask optimizations on 32-bit arch

2005-09-10 Thread gcc-bugzilla at gcc dot gnu dot org
(Sources are from CVS as of about 6AM US/Eastern time today.) I'm testing out how well gcc optimizes some code for reversing bit strings. It appears that on x86 at least, double-word shifts followed by masks that zero out all the bits that crossed the word boundary are not optimized as well as

[Bug c++/24014] New: casting int to double with got wrong result

2005-09-22 Thread gcc-bugzilla at gcc dot gnu dot org
I've written an macro for log2 calculation to calculate the exponent of one value. Than I cast this value to from double to int. The 2 values double and int differs. example: log2(8) should be 3 but after casting to int its 2. This bug could be rep

[Bug fortran/24144] New: segmentation fault in gfortran with character functions.

2005-09-30 Thread gcc-bugzilla at gcc dot gnu dot org
When compiling the given peace of fortran code I will get a segmentation fault. With g77 there have been no problems on it. The problem is independent of the used optimization level. [EMAIL PROTECTED]:~/maint_gcc4/tools> /usr/local/bin/gfortran-4.0 -g -v -save-temps -c test.f Using built-in sp

[Bug c++/24164] New: Explicit instantiation of template has no effect.

2005-10-01 Thread gcc-bugzilla at gcc dot gnu dot org
Here are three files that illustrate the problem. Header file "t.hpp": namespace arrpp { template class A { public: A(); }; } File implementing class A, called t.cc: #include "t.hpp" template

[Bug target/24334] New: [4.0/4.1 regression] IRIX 6.5 bootstrap failure with SGI 7.4.3m ld: GOT overflow

2005-10-12 Thread gcc-bugzilla at gcc dot gnu dot org
Bootstrapping both the 4.0 branch as of 20050928 and mainline as of 20051004 fails on IRIX 6.5.26f with SGI ld from MIPSpro 7.4.3m: gcc -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -DHAVE_CON

[Bug middle-end/21460] sjlj_emit_function_enter adds rtl to wrong block

2005-10-13 Thread gcc-bugzilla at antony dot heightanxiety dot com
--- Comment #9 from gcc-bugzilla at antony dot heightanxiety dot com 2005-10-13 23:07 --- The problem is indeed fixed in 4.0.2, thank you. -- gcc-bugzilla at antony dot heightanxiety dot com changed: What|Removed |Added

[Bug c++/24386] New: 4.1: wrong virtual function called in template member

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
The cvs head of g++ 4.1 miscompiles the following program: extern "C" int printf(...); struct A { virtual void foo () { printf ("A::foo\n"); } }; struct B : public A { virtual void foo () { printf ("B::foo\n"); } }; template void f(T

[Bug c++/2350] No warning for referencing a temporary

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #6 from neroden at gcc dot gnu dot org 2003-05-23 06:02 --- confirmed dupe. -- neroden at gcc dot gnu dot org changed: What|Removed |Added Status|

[Bug c++/4409] Internal Compiler Error

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #2 from from-classpath at savannah dot gnu dot org 2003-07-22 17:16 --- I've checked in a fix for this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4409

[Bug c++/8701] Internal compiler error in expand_call, at calls.c:3049

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #6 from bangerth at dealii dot org 2003-06-11 22:18 --- *** Bug 8240 has been marked as a duplicate of this bug. *** -- bangerth at dealii dot org changed: What|Removed |Added

[Bug c++/9237] [mingw] ICE with dllimport

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #3 from dhazeghi at yahoo dot com 2003-05-31 01:00 --- Hello, with gcc 3.2.3, I can reproduce this bug on an i686-linux to i386-mingw32 cross compiler. With gcc 3.3 branch, and mainline (20030530), I cannot reproduce this error. Should this bug be closed? Thanks, Dara -

[Bug c++/9639] [3.4 regression] [New parser] Namespace std in constructor argument lists on illegal code causes an ICE

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #6 from neroden at gcc dot gnu dot org 2003-05-22 17:19 --- toggling --- Comment #7 from neroden at gcc dot gnu dot org 2003-05-22 17:19 --- toggling --- Comment #8 from neroden at gcc dot gnu dot org 2003-05-22 17:19 --- toggling --- Comment #9 fr

[Bug c++/10960] GCC Build Problem when Build OpenSP 1.5 with GCC 3.3. Template issue???

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #4 from bangerth at dealii dot org 2003-05-24 01:42 --- Not a bug. Your code is roughly equivalent to this: -- template struct Ptr { ~Ptr() { if (ptr_) { if (ptr_->unref()) delete ptr_; ptr_ =

[Bug c++/12093] [3.4 Regression] inconstitent error with templates/non-templates

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #3 from mmitchel at gcc dot gnu dot org 2003-08-30 01:45 --- Fixed in GCC 3.4. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added St

[Bug c/12639] long double comparison is broken

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
The comparison between 0 and the largest power of 2 that fits in a long double gives a non-zero result!!! Environment: System: OSF1 spe171.testdrive.hp.com V5.1 2650 alpha Architecture: alphaev56-dec-osf5.1 host: alphaev56-dec-osf5.1 build: alphaev56-dec-osf5.1 target: alphaev56-dec-osf5.1 config

[Bug c++/17554] [4.0 Regression] crashes in on kopete build (KDE's kdenetwork)

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #17 from pinskia at gcc dot gnu dot org 2004-10-11 03:42 --- Fixed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNE

[Bug bootstrap/17745] if the --prefix directory is not readable, then bootstrapping fails

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
no bug here. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug ada/17888] ICE caused by taking address of array component

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
There is no bug in this bug number. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug ada/20270] [4.1 Regression] Link error: unsatisfied symbols

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #9 from neroden at gcc dot gnu dot org 2005-05-16 11:59 --- Committed fix to mainline. -- neroden at gcc dot gnu dot org changed: What|Removed |Added

[Bug c++/20789] [4.0 regression] ICE with incomplete type in template

2005-10-15 Thread gcc-bugzilla at gcc dot gnu dot org
--- Comment #16 from nathan at gcc dot gnu dot org 2005-07-12 11:29 --- fixed on 4.0 branch -- nathan at gcc dot gnu dot org changed: What|Removed |Added Stat

[Bug c/24656] New: Multiple static inline functions accepted

2005-11-03 Thread gcc-bugzilla at gcc dot gnu dot org
GCC accepts that a function is defined several times under the same name, provided it is static inline. It seems to rely on the assembler to check this kind of issues. Environment: System: Linux nostromo 2.4.27-2-686-smp #1 SMP Tue Aug 16 15:57:25 JST 2005 i686 GNU/Linux Architecture: i686 ho

[Bug target/43444] New: ICE in adjust_mems at var-tracking.c:789

2010-03-19 Thread gcc-bugzilla at gcc dot gnu dot org
ICE while building cross-compiler for ARM. $ /usr/src/gcc-build/./gcc/xgcc -B/usr/src/gcc-build/./gcc/ -B/usr/src/armtest/arm-none-eabi/bin/ -B/usr/src/armtest/arm-none-eabi/lib/ -isystem /usr/src/armtest/arm-none-eabi/include -isystem /usr/src/armtest/arm-none-eabi/sys-include-g -O2 -mfloat-

[Bug c++/43663] New: Can't take a const-ref to a bit field

2010-04-06 Thread gcc-bugzilla at daryl dot haresign dot com
Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at daryl dot haresign dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43663

[Bug rtl-optimization/43892] New: PowerPC suboptimal "add with carry" optimization

2010-04-26 Thread gcc-bugzilla at gcc dot gnu dot org
PowerPC suboptimal "add with carry" optimization Environment: System: Linux gentoo-jocke 2.6.31-gentoo-r6 #1 SMP PREEMPT Sun Feb 28 22:54:53 CET 2010 i686 Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz GenuineIntel GNU/Linux host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gn

[Bug target/22223] New: New testsuite failure on Tru64 UNIX V5.1B: gcc.c-torture/compile/20050622-1.c

2005-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
The new gcc.c-torture/compile/20050622-1.c testcase fails on Tru64 UNIX V5.1B: +FAIL: gcc.c-torture/compile/20050622-1.c (test for excess errors) FAIL: gcc.c-torture/compile/20050622-1.c (test for excess errors) Excess errors: currfunc_frameoffset = 75497488 currfunc_regoffset =

[Bug libstdc++/22222] New: New Tru64 UNIX libstdc++ testsuite failures: #warning debug mode disabled due to lack of weak symbol support

2005-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
Between 20050525 and 20050627 there appeared a couple of new libstdc++ testsuite failures on Tru64 UNIX V5.1B: +FAIL: 23_containers/bitset/18604.cc (test for excess errors) +FAIL: 23_containers/deque/14340.cc (test for excess errors) +FAIL: 23_containers/deque/18604.cc (test for excess errors) +F

[Bug target/22224] New: Several Tru64 UNIX testsuite failures: Length of .lcomm was less than 1

2005-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
Several testcases fail producing invalid assembler code, e.g. FAIL: gcc.dg/gnu89-init-1.c (test for excess errors) Excess errors: as1: Warning: /tmp//ccuPshWt.s, line 1: Length of .lcomm was less than 1: __compound_literal.1 FAIL: gcc.dg/range-test-1.c (test for excess errors) Excess errors: as

[Bug target/22225] New: Tru64 UNIX testsuite failure: gcc.dg/vect/pr18536.c: ICE in in alphaev4_insn_pipe

2005-06-28 Thread gcc-bugzilla at gcc dot gnu dot org
The gcc.dg/vect/pr18536.c testcase fails on alpha-dec-osf5.1b: FAIL: gcc.dg/vect/pr18536.c (test for excess errors) Excess errors: /vol/gnu/src/gcc/gcc-dist/gcc/testsuite/gcc.dg/vect/pr18536.c:13: internal compiler error: in alphaev4_insn_pipe, at config/alpha/alpha.c:8625 Environment: System:

[Bug ada/22270] New: Assert_Failure sinfo.adb:2479 instead of meaningful error message

2005-07-01 Thread gcc-bugzilla at gcc dot gnu dot org
A missing procedure declaration in test.ads causes test.adb to generate an ice. Compiler output is: +===GNAT BUG DETECTED==+ | 3.4.2 20040901 (prerelease) (i686-pc-linux-gnu) Assert_Failure sinfo.adb:2479| | Error detected at test.adb:27:16

[Bug target/23359] New: Many Solaris 10/x86 testsuite failures with native as: use of .word

2005-08-12 Thread gcc-bugzilla at gcc dot gnu dot org
Between 20050627 and 20050805, several C and C++ testcases begain to fail on Solaris 10/x86 with the native as, e.g. +FAIL: g++.old-deja/g++.brendan/crash63.C (test for excess errors) Excess errors: Assembler: crash63.C "/var/tmp//ccnloMW3.s", line 22 : Illegal mnemonic "/var/tmp

[Bug c/23577] New: suprious warnings about unhanled cases in switches

2005-08-26 Thread gcc-bugzilla at gcc dot gnu dot org
gcc generates supruious warnings about switches not handling things which it could (or should) be easily able to deduce are impossible (e.g. assert(v!=FOO) just before the switch that gets reported for not handling FOO. Environment: System: Linux duncan 2.6.11.10 #34 Thu May 26 11:47:48 BST 2005

[Bug libstdc++/23591] New: exceptions in plugins in threads cause segmentation violation by leaving bad exit handler for the pthread

2005-08-26 Thread gcc-bugzilla at gcc dot gnu dot org
libstdc++ registers some handlers with pthreads in conjunction with throw statements. Those handlers are not properly removed when libstdc++ is unloaded, causing pthread_join to jump to a bad address. gcc -ldl -lpthread main.c -o main g++ -shared -lstdc++ -lc -lm plug.cc \ -o plug.so ./main In p

[Bug c++/21534] Declaration in wrong namespace not rejected

2009-12-22 Thread gcc-bugzilla at contacts dot eelis dot net
--- Comment #2 from gcc-bugzilla at contacts dot eelis dot net 2009-12-22 15:18 --- Here's a related snippet that should be rejected but isn't: namespace NS { class x; } int NS::x; -- gcc-bugzilla at contacts dot eelis dot net changed: What

[Bug c++/42490] New: using-directive in namespace doesn't work properly

2009-12-24 Thread gcc-bugzilla at contacts dot eelis dot net
Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc-bugzilla at contacts dot eelis dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42490

[Bug middle-end/42863] New: [4.5] Regression whith auto increments

2010-01-25 Thread gcc-bugzilla at gcc dot gnu dot org
This is a general m68k code generation regression. Starting with revision 150588 GCC for m68k generates "surprising" code for auto increments, eg. for a strlcpy implementation. Compiling this code with the 4.5.0 snapshot from 20100107 yields: -- 4.5.0 -- _strlcpy: movel d3,s...@-

[Bug bootstrap/45053] New: libgcc_s link command misses crtsavgpr_s and crtresgpr_s for powerpc

2010-07-24 Thread gcc-bugzilla at gcc dot gnu dot org
[I know this is a duplicate of 43810, but the information there is partly misleading, so I decided to file a new report.] If GCC is configured for powerpc with --enable-target-optspace, libgcc_s objects get compiled with -Os, and this causes libgcc_s to cont

[Bug other/45238] New: gccgo failure to build

2010-08-09 Thread gcc-bugzilla at gcc dot gnu dot org
libgo fails to build. Here's the error output: gmake[4]: Entering directory `/usr/home/chris/gnuobj/gccgo/i386-unknown-freebsd8.1/libgo' rm -f syscall.gox syscalls/libsyscall.a test -d syscalls || mkdir -p syscalls files=`echo ../../../../gnusrc/gccgo/libgo/syscalls/errstr.go ../../../../gnusrc/

[Bug c++/45510] New: Bug with anonymous unions and bit-fields

2010-09-02 Thread gcc-bugzilla at gcc dot gnu dot org
I have isolated the problem to a very small test program. There are 2 tests in main, testa builds an anonymous union with bit-fields in it. testb builds a similar anonymous union but this time with a named structure in it but otherwise identical members. testa gives in

<    1   2   3   4   5   >