Thread overview | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
May 11, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Latest 'n greatest: http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip |
May 12, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Le 2011-05-12 ? 0:45, Walter Bright a ?crit : > Latest 'n greatest: > > http://ftp.digitalmars.com/dmd1beta.zip http://ftp.digitalmars.com/dmd2beta.zip $ dmd test.d ld: warning: directory not found for option '-L/Library/Compilers/dmd2/osx/bin/../lib32' Compilation worked for me, but only because I have a libphobos2.a symlink in /usr/local/lib. Looks like osx/bin/dmd.conf wrongly points to osx/lib32 instead of the renamed osx/lib. -- Michel Fortin michel.fortin at michelf.com http://michelf.com/ |
May 12, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Michel Fortin |
On 5/12/2011 1:20 PM, Michel Fortin wrote:
>
> $ dmd test.d
> ld: warning: directory not found for option '-L/Library/Compilers/dmd2/osx/bin/../lib32'
>
> Compilation worked for me, but only because I have a libphobos2.a symlink in /usr/local/lib. Looks like osx/bin/dmd.conf wrongly points to osx/lib32 instead of the renamed osx/lib.
>
Fixed.
|
May 13, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | Assigning function pointers is not type-checked: import std.stdio; alias void function(byte a) foo_t; void foo(int x) { writeln(x); } foo_t foo_p = &foo; void main(string[] args) { foo_p(42); } The code compiles and the program outputs -1075219670. Is it a known regression? Very severe bug, in my opinion. On Fri, May 13, 2011 at 12:14 AM, Walter Bright <walter at digitalmars.com>wrote: > > > On 5/12/2011 1:20 PM, Michel Fortin wrote: > >> >> $ dmd test.d >> ld: warning: directory not found for option >> '-L/Library/Compilers/dmd2/osx/bin/../lib32' >> >> Compilation worked for me, but only because I have a libphobos2.a symlink in /usr/local/lib. Looks like osx/bin/dmd.conf wrongly points to osx/lib32 instead of the renamed osx/lib. >> >> > Fixed. > > _______________________________________________ > dmd-beta mailing list > dmd-beta at puremagic.com > http://lists.puremagic.com/mailman/listinfo/dmd-beta > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110513/ba219e7b/attachment.html> |
May 13, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | On Fri, May 13, 2011 at 1:12 AM, Max Samukha <maxsamukha at gmail.com> wrote: > Assigning function pointers is not type-checked: > > import std.stdio; > > alias void function(byte a) foo_t; > void foo(int x) { writeln(x); } > foo_t foo_p = &foo; > > void main(string[] args) > { > foo_p(42); > } > > The code compiles and the program outputs -1075219670. Is it a known regression? Very severe bug, in my opinion. > > > Forgot to mention that I tested with the latest dmd 2 beta on 32-bit linux. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110513/143591d2/attachment.html> |
May 13, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | On 13 May 2011 00:12, Max Samukha <maxsamukha at gmail.com> wrote:
> Assigning function pointers is not type-checked:
>
> import std.stdio;
>
> alias void function(byte a) foo_t;
> void foo(int x) { writeln(x); }
> foo_t foo_p = &foo;
>
> void main(string[] args)
> {
> ??? foo_p(42);
> }
>
> The code compiles and the program outputs -1075219670. Is it a known regression? Very severe bug, in my opinion.
Regression was introduced in 2.038. Shouldn't block this release.
|
May 13, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | On Fri, May 13, 2011 at 3:14 AM, Don Clugston <dclugston at googlemail.com>wrote: > On 13 May 2011 00:12, Max Samukha <maxsamukha at gmail.com> wrote: > > Assigning function pointers is not type-checked: > > > > import std.stdio; > > > > alias void function(byte a) foo_t; > > void foo(int x) { writeln(x); } > > foo_t foo_p = &foo; > > > > void main(string[] args) > > { > > foo_p(42); > > } > > > > The code compiles and the program outputs -1075219670. Is it a known regression? Very severe bug, in my opinion. > > Regression was introduced in 2.038. Shouldn't block this release. > whoa > _______________________________________________ > dmd-beta mailing list > dmd-beta at puremagic.com > http://lists.puremagic.com/mailman/listinfo/dmd-beta > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110513/7cdcffe5/attachment.html> |
May 13, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Max Samukha | On 13 May 2011 08:06, Max Samukha <maxsamukha at gmail.com> wrote:
>
> On Fri, May 13, 2011 at 3:14 AM, Don Clugston <dclugston at googlemail.com> wrote:
>>
>> On 13 May 2011 00:12, Max Samukha <maxsamukha at gmail.com> wrote:
>> > Assigning function pointers is not type-checked:
>> >
>> > import std.stdio;
>> >
>> > alias void function(byte a) foo_t;
>> > void foo(int x) { writeln(x); }
>> > foo_t foo_p = &foo;
>> >
>> > void main(string[] args)
>> > {
>> > ??? foo_p(42);
>> > }
>> >
>> > The code compiles and the program outputs -1075219670. Is it a known regression? Very severe bug, in my opinion.
>>
>> Regression was introduced in 2.038. Shouldn't block this release.
>
> whoa
I agree it's a severe bug. Can you please add it to Bugzilla?
|
May 13, 2011 [dmd-beta] dmd 1.068 and 2.053 beta | ||||
---|---|---|---|---|
| ||||
Posted in reply to Don Clugston | On Fri, May 13, 2011 at 10:12 AM, Don Clugston <dclugston at googlemail.com>wrote: > On 13 May 2011 08:06, Max Samukha <maxsamukha at gmail.com> wrote: > > > > On Fri, May 13, 2011 at 3:14 AM, Don Clugston <dclugston at googlemail.com> wrote: > >> > >> On 13 May 2011 00:12, Max Samukha <maxsamukha at gmail.com> wrote: > >> > Assigning function pointers is not type-checked: > >> > > >> > import std.stdio; > >> > > >> > alias void function(byte a) foo_t; > >> > void foo(int x) { writeln(x); } > >> > foo_t foo_p = &foo; > >> > > >> > void main(string[] args) > >> > { > >> > foo_p(42); > >> > } > >> > > >> > The code compiles and the program outputs -1075219670. Is it a known regression? Very severe bug, in my opinion. > >> > >> Regression was introduced in 2.038. Shouldn't block this release. > > > > whoa > > I agree it's a severe bug. Can you please add it to Bugzilla? > http://d.puremagic.com/issues/show_bug.cgi?id=5994 > _______________________________________________ > dmd-beta mailing list > dmd-beta at puremagic.com > http://lists.puremagic.com/mailman/listinfo/dmd-beta > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.puremagic.com/pipermail/dmd-beta/attachments/20110513/ba0b5142/attachment.html> |
Copyright © 1999-2021 by the D Language Foundation