public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51344] New: cc1plus hangs when compiling
@ 2011-11-29 14:06 koliasvskj at gmail dot com
  2011-11-29 14:33 ` [Bug c++/51344] " keithmarshall at mailinator dot com
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: koliasvskj at gmail dot com @ 2011-11-29 14:06 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51344
           Summary: cc1plus hangs when compiling
    Classification: Unclassified
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: koliasvskj@gmail.com


After trying to compile one of old projects I ran into the situation when
mingw32-g++ silently hanged up. After ah hour of research I refined the whole
situation to this simple test file (evidently the main reason was the erratum;
but it was better to have the compile error and crashed build here then to have
three hours of senseless CPU torturing).

 /////////////////////////////////////////
 // test.cpp 
 class A;

 template <class T>
 class B
 {
 friend __attribute__((cdecl)) A& operator >>(A& a, B& b)
 {
 return a;
 }
 };
 //
 /////////////////////////////////////////

 Compiled with command:
 mingw32-g++ -v test.cpp

 Resulting output:

 Using built-in specs.
 COLLECT_GCC=mingw32-g++
 COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/lto-wrapper.exe
 Target: mingw32
 Configured with: ../gcc-4.5.2/configure
--enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions
--with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry
--enable-libstdcxx-debug --enable-version-specific-runtime-libs
--disable-werror --build=mingw32 --prefix=/mingw
 Thread model: win32
 gcc version 4.5.2 (GCC) 
 COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=i386' '-march=i386'
 c:/mingw/bin/../libexec/gcc/mingw32/4.5.2/cc1plus.exe -quiet -v -iprefix
c:\mingw\bin\../lib/gcc/mingw32/4.5.2/ appdict.cpp -quiet -dumpbase appdict.cpp
-mtune=i386 -march=i386 -auxbase appdict -version -o
C:\DOCUME~1\9335~1\LOCALS~1\Temp\ccenojSj.s
 GNU C++ (GCC) version 4.5.2 (mingw32)
 compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version 2.4.1, MPC
version 0.8.1
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 ignoring nonexistent directory
"c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../mingw32/include"
 ignoring duplicate directory
"c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/include/c++"
 ignoring duplicate directory
"c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/include/c++/mingw32"
 ignoring duplicate directory
"c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/include/c++/backward"
 ignoring duplicate directory
"/mingw/lib/gcc/mingw32/4.5.2/../../../../include"
 ignoring duplicate directory "c:/mingw/lib/gcc/../../include"
 ignoring duplicate directory
"c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/include"
 ignoring duplicate directory
"c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/include-fixed"
 ignoring nonexistent directory
"c:/mingw/lib/gcc/../../lib/gcc/mingw32/4.5.2/../../../../mingw32/include"
 ignoring duplicate directory "/mingw/include"
 #include "..." search starts here:
 #include <...> search starts here:
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/mingw32
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include/c++/backward
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include
 c:\mingw\bin\../lib/gcc/mingw32/4.5.2/include-fixed
 End of search list.
 GNU C++ (GCC) version 4.5.2 (mingw32)
 compiled by GNU C version 4.5.2, GMP version 5.0.1, MPFR version 2.4.1, MPC
version 0.8.1
 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 Compiler executable checksum: bba7c68567cab1560329ee702fa8a945
 ^C

This bug is a copy from
https://sourceforge.net/tracker/?func=detail&atid=102435&aid=3444236&group_id=2435


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-01-27 21:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29 14:06 [Bug c++/51344] New: cc1plus hangs when compiling koliasvskj at gmail dot com
2011-11-29 14:33 ` [Bug c++/51344] " keithmarshall at mailinator dot com
2011-12-02 16:10 ` paolo.carlini at oracle dot com
2011-12-02 18:58 ` koliasvskj at gmail dot com
2012-01-17 11:24 ` ktietz at gcc dot gnu.org
2012-01-18 20:27 ` [Bug c++/51344] [4.4/4.5/4.6/4.7 regression] " jason at gcc dot gnu.org
2012-01-19 13:56 ` rguenth at gcc dot gnu.org
2012-01-19 22:29 ` ktietz at gcc dot gnu.org
2012-01-19 23:04 ` ktietz at gcc dot gnu.org
2012-01-19 23:09 ` ktietz at gcc dot gnu.org
2012-01-19 23:13 ` ktietz at gcc dot gnu.org
2012-01-19 23:16 ` ktietz at gcc dot gnu.org
2021-04-29 18:42 ` cvs-commit at gcc dot gnu.org
2022-01-27 21:55 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).