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++/22611] New: internal compiler error: in resolve_overloaded_unification


$ g++ -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /gcc/gcc-3.4.4/gcc-3.4.4-1/configure --verbose --prefix=/usr --
exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --man
dir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,
java,objc --enable-nls --without-included-gettext --enable-version-specific-runt
ime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --ena
ble-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=b
oehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchroniza
tion --enable-libstdcxx-debug : (reconfigured)
Thread model: posix
gcc version 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)

$ cat gcc34bug.cpp
#include <iostream>
#include <sstream>

using namespace std;

template<typename T>
void foo(){
        ostringstream oss;

        /**
         * A missing () after str will cause an internal compiler error.
         * Without template<typename T> the code fails to compile as expected.
         */
        cout << oss.str << endl;
}

int main(){
        foo<int>();
}

$ g++ gcc34bug.cpp
gcc34bug.cpp: In function `void foo()':
gcc34bug.cpp:14: internal compiler error: in resolve_overloaded_unification, at
cp/pt.c:9317
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: internal compiler error: in
                    resolve_overloaded_unification
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: krzysan at skrzynka dot pl
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: CYGWIN_NT-5.1 duli5 1.5.19s(0.134/4/2) 20050716
GCC target triplet: CYGWIN_NT-5.1 duli5 1.5.19s(0.134/4/2) 20050716


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


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