This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11104] New: GCC gets stuck when streampos is typedefed


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: GCC gets stuck when streampos is typedefed
           Product: gcc
           Version: 3.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rousskov@measurement-factory.com
                CC: gcc-bugs@gcc.gnu.org
  GCC host triplet: i386-portbld-freebsd4.8
GCC target triplet: i386-portbld-freebsd4.8

GCC gets stuck forever when compiling the following three lines of code.
I will attach the test.ii file. Please note that I do not claim that
the quoted code is correct! I report this bug in hope that fixing it will
fix similar infinite loop problems with better, correct code.

N.B. When stuck, GCC eats 95% of CPU cycles but does not seem to eat
     memory.

-------------
% cat test.cc
#include <iostream.h>
typedef istream::pos_type streampos;
#include <fstream.h>

% /usr/local/bin/g++32 -v -c test.cc -Wall
Reading specs from /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/specs
Configured with: ./..//gcc-3.2.3/configure --disable-nls --with-gxx-include-dir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/g++-v3 --with-system-zlib --includedir=/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/Java --disable-shared --prefix=/usr/local i386-portbld-freebsd4.8
Thread model: posix
gcc version 3.2.3
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/cc1plus -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=3 -D__GXX_ABI_VERSION=102 -D__FreeBSD__=4 -Dunix -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__FreeBSD__=4 -D__unix__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ -D__unix -Asystem=unix -Asystem=bsd -Asystem=FreeBSD -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ -D__ELF__ test.cc -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -quiet -dumpbase test.cc -Wall -version -o /var/tmp//cccdkj0K.s
GNU CPP version 3.2.3 (cpplib) (i386 FreeBSD/ELF)
GNU C++ version 3.2.3 (i386-portbld-freebsd4.8)
        compiled by GNU C version 3.2.3.
ignoring nonexistent directory "/usr/local/i386-portbld-freebsd4.8/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/g++-v3
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/g++-v3/i386-portbld-freebsd4.8
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/g++-v3/backward
 /usr/local/include
 /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include
 /usr/include
End of search list.
In file included from /usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/g++-v3/backward/iostream.h:31,
                 from test.cc:2:
/usr/local/lib/gcc-lib/i386-portbld-freebsd4.8/3.2.3/include/g++-v3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
^C

%


Thank you for GCC.

HTH,

Alex.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]