X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: jimm Newsgroups: comp.os.msdos.djgpp Subject: Re: internal compiler error with c++11 features on 4.6.2 Date: Sat, 26 Nov 2011 22:17:01 -0800 (PST) Organization: http://groups.google.com Lines: 75 Message-ID: <8bb95d6f-36ea-47d3-8bd7-24939a80bb73@v31g2000prg.googlegroups.com> References: <64237354-a1d5-4c03-b446-b7de61297344 AT a2g2000prb DOT googlegroups DOT com> NNTP-Posting-Host: 24.22.56.37 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1322375640 25373 127.0.0.1 (27 Nov 2011 06:34:00 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Sun, 27 Nov 2011 06:34:00 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: v31g2000prg.googlegroups.com; posting-host=24.22.56.37; posting-account=05hOMwoAAAB6R8xtiQKzEljSMzgOhVF1 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) Bytes: 3798 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pAR6j3Q6005087 Reply-To: djgpp AT delorie DOT com On Nov 26, 9:53 pm, jimm wrote: > On Nov 26, 7:10 pm, jimm 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 and . > > > 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 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 > #include > using namespace std; > int main(void) { > map 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?