Mail Archives: djgpp/2011/11/27/01:45:09
On Nov 26, 9:53 pm, jimm <jmich DOT DOT DOT AT yahoo DOT com> wrote:
> On Nov 26, 7:10 pm, jimm <jmich DOT DOT DOT AT yahoo DOT com> wrote:
>
>
>
>
>
>
>
>
>
> > there is a 4.6.3 out, don't know if this fixes the problem or not,
> > there have been other people reporting internal compiler errors. I am
> > using <vector> <iterator> <map> and <initializer_list>.
>
> > does the new 4.6.2 still use @responsefiles on the commandline?
>
> > Sat 11/26/2011 18:54:00.78|C:\prj\phone\phone-1.12\dos|>c:\djc462~1\bin
> > \gcc -x c++ -Wall -W -Wextra -v -save-temps -s -std=gnu++0x -oa.exe
> > @_TMPSRCQ.LST 2>
> > errgp
> > Using built-in specs.
> > COLLECT_GCC=c:/djc462~1/bin/gcc.exe
> > COLLECT_LTO_WRAPPER=c:/djc462~1/bin/../libexec/gcc/djgpp/4.62/lto-
> > wrapper.exe
> > Target: djgpp
> > Configured with: /v204/gcc-4.62/configure djgpp --prefix=/dev/env/
> > DJDIR --disable-nls --disable-werror --enable-languages=c,c+
> > +,fortran,objc,obj-c++,ada --enabl
> > e-libquadmath-support
> > Thread model: single
> > gcc version 4.6.2 (GCC)
> > COLLECT_GCC_OPTIONS='-Wall' '-Wextra' '-v' '-save-temps' '-s' '-std=gnu
> > ++0x' '-o' 'a.exe' '-mtune=pentium' '-march=pentium'
> > cc1plus -E -quiet -v -iprefix c:/djc462~1/bin/../lib/gcc/djgpp/4.62/ -
> > remap phone.cpp -mtune=pentium -march=pentium -std=gnu++0x -Wall -
> > Wextra -fpch-preprocess
> > -o phone.ii
> > gcc.exe: internal compiler error: (program cc1plus)
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <http://gcc.gnu.org/bugs.html> for instructions.
> > Volume in drive C is samsung 2000
> > Volume Serial Number is 783C-0FA9
>
> > Directory of C:\prj\phone\phone-1.12\dos
>
> this is being caused by assignment of an initializer list to a map,
> which should work. for example
> #include <map>
> #include <initializer_list>
> using namespace std;
> int main(void) {
> map<char,char> mcc = {
> {'a','2'},
> {'b','2'}};
> return 0;
> }
>
> will cause the same problem.
> seehttp://gcc.gnu.org/bugzilla/show_bug.cgi?id=51320which I just
> submitted.
>
> does 4.6.2 not support initializer lists and other c++0x stuff yet? I
> need it desperately. my code base already requires this in several
> programs, and the DOS platform is lagging behind.
the file initializer_list is not in the compiler. it should not be
causing the compiler to implode.
does 4.6.3 fix this problem?
- Raw text -