kopia lustrzana https://gitlab.com/sane-project/website
58 wiersze
2.9 KiB
HTML
58 wiersze
2.9 KiB
HTML
<!-- received="Sun Nov 22 12:02:12 1998 PST" -->
|
||
<!-- sent="Sun, 22 Nov 1998 15:08:11 -0500" -->
|
||
<!-- name="David Huggins-Daines" -->
|
||
<!-- email="bn711@freenet.carleton.ca" -->
|
||
<!-- subject="Re: compiling problem with egcs-1.03a" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="19981122140213.A355@overlord.@" -->
|
||
<title>sane-devel: Re: compiling problem with egcs-1.03a</title>
|
||
<h1>Re: compiling problem with egcs-1.03a</h1>
|
||
<b>David Huggins-Daines</b> (<a href="mailto:bn711@freenet.carleton.ca"><i>bn711@freenet.carleton.ca</i></a>)<br>
|
||
<i>Sun, 22 Nov 1998 15:08:11 -0500</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#206">[ date ]</a><a href="index.html#206">[ thread ]</a><a href="subject.html#206">[ subject ]</a><a href="author.html#206">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0207.html">Christian Reiser: "Re: SANE v1.00 is out!"</a>
|
||
<li> <b>Previous message:</b> <a href="0205.html">Danilo Godec: "Re: The Primax Scanner Driver Project for Linux/UN*X homepage started"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
On Sun, Nov 22, 1998 at 02:02:13PM -0500, David Huggins-Daines wrote:<br>
|
||
<i>> On Sun, Nov 22, 1998 at 09:48:51AM -0800, David Mosberger-Tang wrote:</i><br>
|
||
<i>> > However, I think the real bug may be in egcs-1.03a. I thought ANSI C</i><br>
|
||
<i>> > allows such assignments to the first member of a union (or is this</i><br>
|
||
<i>> > supposed to be allowed for union initialization only?).</i><br>
|
||
<i>> </i><br>
|
||
<i>> Oh, crud. I goofed. I don't know if it's required by ANSI or not, but</i><br>
|
||
s/required/allowed/ ^^^^^^^^<br>
|
||
<i>> it's just plain wrong anyway. I'm very surprised that gcc -Wall didn't</i><br>
|
||
<i>> catch it!</i><br>
|
||
<p>
|
||
Just to follow up, no, it's not allowed by ANSI. Using the "-pedantic"<br>
|
||
flag in gcc gives a warning to that effect. I have no idea why they<br>
|
||
decided to make it a compiler error in egcs, though.<br>
|
||
<p>
|
||
<pre>
|
||
--
|
||
use strict;print&{sub{my(@q)=@_;&{sub{my($p)=@_;&$p($p,@q);}}(sub{my($p)=shift;
|
||
@_&&($_[0][0].":".(ref $_[0][1]?"\n".&$p($p,@{$_[0][1]}):$_[0][1])."\n".(&$p(
|
||
$p,@_[1..$#_])||''));});}}([name=>'David Huggins-Daines'],[email=>'bn711@free'.
|
||
'net.carleton.ca'],[occupation=>[[by_day=>'linguist'],[by_night=>'hacker']]]);
|
||
<p>
|
||
<pre>
|
||
--
|
||
Source code, list archive, and docs: <a href="http://www.mostang.com/sane/">http://www.mostang.com/sane/</a>
|
||
To unsubscribe: echo unsubscribe sane-devel | mail <a href="mailto:majordomo@mostang.com">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0207.html">Christian Reiser: "Re: SANE v1.00 is out!"</a>
|
||
<li> <b>Previous message:</b> <a href="0205.html">Danilo Godec: "Re: The Primax Scanner Driver Project for Linux/UN*X homepage started"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|