🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49849

Re: Array syntax different from cfront-based compilers ?

#49849
From: Fergus Henderson
Date: Fri, 24 Dec 1993 13:02
22 lines
1445 bytes
jarausch@igpm.rwth-aachen.de (Helmut Jarausch) writes:

>Please be patient if this is a FAQ, I haven't found it there.
>/* ----------------------------------------------------
>   this code compiles without problems on  AT&T cfront based compilers
>*/
>int main()
>{ double  (*q)[5];
>// assignment between incompatible pointer types why?
>  q= new double[3][5];
>  return 0;
>}
>
>Since I am teaching C++ I would be glad if anybody could tell
>me what's wrong with it.

This is a g++ bug.

-- 
Fergus Henderson        |   "People who brook no compromise in programming
                        |   languages should program in lambda calculus or
fjh@munta.cs.mu.OZ.AU   |   machine language, depending." --Andrew Koenig.
Technical Details
Message-ID: <9335900.15517@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!uunet!olivea!sgigate.sgi.com!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
References: <2f6oo1$c31@urmel.informatik.rwth-aachen.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,4ce18bb3e06a8b65
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-24 05:07:39 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!uunet!olivea!sgigate.sgi.com!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: Array syntax different from cfront-based compilers ?
Message-ID: <9335900.15517@mulga.cs.mu.OZ.AU>
Keywords: array syntax
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
References: <2f6oo1$c31@urmel.informatik.rwth-aachen.de>
Date: Fri, 24 Dec 1993 13:02:54 GMT
Lines: 22