[Bug c++/30845] New: segfault in collect2 with large template

2007-02-18 Thread cpp at tempest-sw dot com
Compile the attached source file to see the segfault:

$ g++4 -v bug.cpp
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.2/configure --program-suffix=4 : (reconfigured)
../gcc-4.1.2/configure --enable-languages=c,c++ --program-suffix=4
Thread model: posix
gcc version 4.1.2
 /usr/local/libexec/gcc/i686-pc-linux-gnu/4.1.2/cc1plus -quiet -v -D_GNU_SOURCE
bug.cpp -quiet -dumpbase bug.cpp -mtune=pentiumpro -auxbase bug -version -o
/tmp/ccqr4llF.s
ignoring nonexistent directory "NONE/include"
ignoring nonexistent directory
"/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2

/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/i686-pc-linux-gnu

/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../../../include/c++/4.1.2/backward
 /usr/local/include
 /usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/include
 /usr/include
End of search list.
GNU C++ version 4.1.2 (i686-pc-linux-gnu)
compiled by GNU C version 4.0.2 20050901 (prerelease) (SUSE Linux).
GGC heuristics: --param ggc-min-expand=99 --param ggc-min-heapsize=129492
Compiler executable checksum: 05bd8c32863edc67f1601012dc99be46
 as -V -Qy -o /tmp/ccCUjzhc.o /tmp/ccqr4llF.s
GNU assembler version 2.17 (i686-pc-linux-gnu) using BFD version 2.17
 /usr/local/libexec/gcc/i686-pc-linux-gnu/4.1.2/collect2 --eh-frame-hdr -m
elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/crtbegin.o
-L/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2
-L/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/../../.. /tmp/ccCUjzhc.o -lstdc++
-lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/local/lib/gcc/i686-pc-linux-gnu/4.1.2/crtend.o /usr/lib/crtn.o
collect2: ld terminated with signal 11 [Segmentation fault]


-- 
   Summary: segfault in collect2 with large template
   Product: gcc
   Version: 4.1.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cpp at tempest-sw dot com
 GCC build triplet: i686-pc-linux
  GCC host triplet: i686-pc-linux
GCC target triplet: i686-pc-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30845



[Bug c++/30845] segfault in collect2 with large template

2007-02-18 Thread cpp at tempest-sw dot com


--- Comment #1 from cpp at tempest-sw dot com  2007-02-18 21:37 ---
Created an attachment (id=13066)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13066&action=view)
Source file to demonstrate problem


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30845



[Bug libstdc++/20909] New: incorrect floating point format

2005-04-08 Thread cpp at tempest-sw dot com
In some locales, certain floating point numbers are printed incorrectly. (I
think the problem lies with numbers with one significant digits, in scientific
format, with a thousands separator and thousands grouping.)

For example:

#include 
#include 
#include 

int main()
{
  std::wcout.imbue(std::locale("en_US"));
  std::wcout << 2e10 << '\n';
}

Prints "2e,+10".

-- 
   Summary: incorrect floating point format
   Product: gcc
   Version: 3.4.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: cpp at tempest-sw dot com
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20909


[Bug c++/22114] New: Incorrect diagnostic for specialization of a nested class template

2005-06-18 Thread cpp at tempest-sw dot com
The code in the attached file is correct (Comeau 4.3.0.1 agrees with me), but
g++ reports an error:
doxybug.cpp:13: error: too few template-parameter-lists

-- 
   Summary: Incorrect diagnostic for specialization of a nested
class template
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: cpp at tempest-sw dot com
CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22114


[Bug c++/22114] Incorrect diagnostic for specialization of a nested class template

2005-06-18 Thread cpp at tempest-sw dot com

--- Additional Comments From cpp at tempest-sw dot com  2005-06-18 14:13 
---
Created an attachment (id=9108)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9108&action=view)
sample code


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22114