Thread overview
Missing trailing } still compiles under DMD1.057
Apr 12, 2010
Sam Hu
Apr 12, 2010
Sam Hu
Apr 12, 2010
Sam Hu
April 12, 2010
Given below code:

module uniword;

import std.c.stdio;
import std.c.windows.windows;

import std.stdio;
import *;

void main()
{

testFoo;

}
struct Foo
{
	int a;
	static Foo opCall(int a)
	{
		Foo s;
		s.a=a;
		return s;
	}
}

void testFoo()
{
	Foo x=Foo(10);
	writefln("%d\n",x.a);

	readln;

April 12, 2010
Continued:
Please be aware that the last } of function testFoo was missing.

It compiled pretty good by bud -O -release -cleanup uniword.d
April 12, 2010
Continued.

Please be aware that the last } is missing in the function testFoo.

This program compiled with no error under DMD1.057 and 1.058.
April 12, 2010
Please report bugs here:

  http://d.puremagic.com/issues/

This newsgroup is just a feed from Bugzilla.

-Lars



Sam Hu wrote:
> Given below code:
> 
> module uniword;
> 
> import std.c.stdio;
> import std.c.windows.windows;
> 
> import std.stdio;
> import *;
> 
> void main()
> {
> 
> testFoo;
> 
> }
> struct Foo
> {
> 	int a;
> 	static Foo opCall(int a)
> 	{
> 		Foo s;
> 		s.a=a;
> 		return s;
> 	}
> }
> 
> void testFoo()
> {
> 	Foo x=Foo(10);
> 	writefln("%d\n",x.a);
> 
> 	readln;
>