delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/11/27/01:15:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: jimm <jmichae3 AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: internal compiler error with c++11 features on 4.6.2
Date: Sat, 26 Nov 2011 21:53:16 -0800 (PST)
Organization: http://groups.google.com
Lines: 58
Message-ID: <bc5e54a1-40b5-4737-a497-e6b74454968d@l23g2000pro.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
X-Trace: posting.google.com 1322373308 1593 127.0.0.1 (27 Nov 2011 05:55:08 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Sun, 27 Nov 2011 05:55:08 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: l23g2000pro.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: 3394
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pAR6F24b003414
Reply-To: djgpp AT delorie DOT com

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.
see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51320 which 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019