#1172 Internal compiler error: in subst_stack_regs_pat

closed-fixed
nobody
gcc (462)
2008-06-08
2008-05-29
No

This (stupid) code produces an internal compiler error, when compiling with optimization:

//START

#include <sstream>

double Foo()
{
std::istringstream ISS;
} // HERE: internal compiler error: in subst_stack_regs_pat, at reg-stack.c:1343

int main()
{
return 0;
}

//END

When the function Foo is meaningfully completed, then it's OK.

The preprocessed file is attached.

Command:
g++-sjlj main.ii -O

Output:
C:\Programy\CodeBlocks\projects\Bug2Test\main.cpp: In function 'double Foo()':
C:\Programy\CodeBlocks\projects\Bug2Test\main.cpp:6: internal compiler error: in
subst_stack_regs_pat, at reg-stack.c:1343
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

OS:
MS Windows Vista Home Basic 64-bit (version 6.0.6000)

gcc version:
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.2.1-2-src/configure --with-gcc --enable-libgomp --host
=mingw32 --build=mingw32 --target=mingw32 --program-suffix=-sjlj --with-arch=i48
6 --with-tune=generic --disable-werror --prefix=/mingw --with-local-prefix=/ming
w --enable-threads --disable-nls --enable-languages=c,c++,fortran,objc,obj-c++,a
da --disable-win32-registry --enable-sjlj-exceptions --enable-libstdcxx-debug --
enable-cxx-flags=-fno-function-sections -fno-data-sections --enable-version-spec
ific-runtime-libs --disable-bootstrap
Thread model: win32
gcc version 4.2.1-sjlj (mingw32-2)

ld version:
GNU ld (GNU Binutils) 2.18.50.20071123

mingw-runtime version (include/_mingw.h):
#define __MINGW32_VERSION 3.14

w32api version (include/w32api.h):
#define __W32API_VERSION 3.11

Discussion

  • Jan Lachnitt

    Jan Lachnitt - 2008-05-29

    Preprocessed source

     
    Attachments
  • Danny Smith

    Danny Smith - 2008-06-08

    Logged In: YES
    user_id=11494
    Originator: NO

    This is fixed in 4.3.0

     
  • Danny Smith

    Danny Smith - 2008-06-08
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks