* [Q] V2.0 cc known bug?
@ 1994-09-19 12:34 Philip Shearer @ZUO-DC EBS-Team
1994-09-20 10:07 ` Bjorn Wennberg
1994-09-20 15:00 ` Greg Lueck Development Environment
0 siblings, 2 replies; 4+ messages in thread
From: Philip Shearer @ZUO-DC EBS-Team @ 1994-09-19 12:34 UTC (permalink / raw)
uname -a
OSF1 xxxxxx.xxx.dec.com V2.0 240 alpha
(also on)
OSF1 xxxxxx.xxx.dec.com V2.1 250 alpha
I made a mistake in a piece of code but because of typedefs etc it was
difficult to spot.
The trouble was that I had missed out a "*" (in front of the harry in
the examle below). When trying to compile this piece of code, the
compiler never returns, (using trace cc forks a child and waits for the
child to return, but the child does not).
Is this a known bug and is there a work around (setting switches etc)?
/*-----------------------X Cut X-----------------------------------*/
int fred1 = 1 ;
void harry[] = /* should have been "void *harry[] =" */
{
&fred1
} ;
int main(void)
{
return 0 ;
}
/*-----------------------X Cut X-----------------------------------*/
--
Regards Philip Shearer
Disclaimer: Please note that the above is a personal view and should
not be construed as an official comment from DEC.
`Then there's no reason why you should know anything about Colonel Jacob
Ruppert High School in the Bronx. At Ruppert we use comparative terms,
but OUTSTANDING isn't one of them. The range runs more from cooperative
to life-threatening'
Tom Wolf in "The Bonfire of the Vanities"
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Q] V2.0 cc known bug?
1994-09-19 12:34 [Q] V2.0 cc known bug? Philip Shearer @ZUO-DC EBS-Team
@ 1994-09-20 10:07 ` Bjorn Wennberg
1994-09-20 14:57 ` Burkhard Neidecker-Lutz
1994-09-20 15:00 ` Greg Lueck Development Environment
1 sibling, 1 reply; 4+ messages in thread
From: Bjorn Wennberg @ 1994-09-20 10:07 UTC (permalink / raw)
In article <35k0g3$c54@mrnews.mro.dec.com> pbs@zuunix.zuo.dec.com (Philip Shearer @ZUO-DC EBS-Team) writes:
The trouble was that I had missed out a "*" (in front of the harry in
the examle below). When trying to compile this piece of code, the
compiler never returns, (using trace cc forks a child and waits for the
child to return, but the child does not).
Is this a known bug and is there a work around (setting switches etc)?
--
Regards Philip Shearer
The switches needed is g+cc :-)
> gcc hmm.c
hmm.c:3: declaration of `harry' as array of voids
hmm.c:3: variable `harry' has initializer but incomplete type
hmm.c:6: invalid initializer for `harry'
>
bjornw>
--
-----------------------------------------------------------------------------
bjornw@edb.tih.no - Trondheim College of Engeneering
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [Q] V2.0 cc known bug?
1994-09-20 10:07 ` Bjorn Wennberg
@ 1994-09-20 14:57 ` Burkhard Neidecker-Lutz
0 siblings, 0 replies; 4+ messages in thread
From: Burkhard Neidecker-Lutz @ 1994-09-20 14:57 UTC (permalink / raw)
In article <BJORNW.94Sep20120737@oversoul.edb.tih.no> bjornw@oversoul.edb.tih.no (Bjorn Wennberg) writes:
>
>The switches needed is g+cc :-)
>
>> gcc hmm.c
>hmm.c:3: declaration of `harry' as array of voids
>hmm.c:3: variable `harry' has initializer but incomplete type
>hmm.c:6: invalid initializer for `harry'
>>
It is a bug in the C front end. One workaround is to use the -migrate
switch:
tcsh# cc -migrate -c a.c
cc: Error: a.c, line 5: In the initializer for harry, an array's element
type is incomplete, which precludes its initialization.
&fred1
----^
Burkhard Neidecker-Lutz
GLASS Project, CEC Karlsruhe
Advanced Technology Group, Digital Equipment Corporation
neideck@nestvx.enet.dec.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Q] V2.0 cc known bug?
1994-09-19 12:34 [Q] V2.0 cc known bug? Philip Shearer @ZUO-DC EBS-Team
1994-09-20 10:07 ` Bjorn Wennberg
@ 1994-09-20 15:00 ` Greg Lueck Development Environment
1 sibling, 0 replies; 4+ messages in thread
From: Greg Lueck Development Environment @ 1994-09-20 15:00 UTC (permalink / raw)
In article <35k0g3$c54@mrnews.mro.dec.com>, pbs@zuunix.zuo.dec.com (Philip Shearer @ZUO-DC EBS-Team) writes:
|>
|> Is this a known bug and is there a work around (setting switches etc)?
We didn't know about it before, but we do now. We've entered a bug report
and will fix this in a future release. Thanks for pointing it out.
--
-------------------------------------------------------------------------------
Greg Lueck Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------
--
-------------------------------------------------------------------------------
Greg Lueck Opinions expressed herein are my own.
lueck@zk3.dec.com
-------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1994-09-20 15:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-19 12:34 [Q] V2.0 cc known bug? Philip Shearer @ZUO-DC EBS-Team
1994-09-20 10:07 ` Bjorn Wennberg
1994-09-20 14:57 ` Burkhard Neidecker-Lutz
1994-09-20 15:00 ` Greg Lueck Development Environment
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox