www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Missing trailing } still compiles under DMD1.057

reply Sam Hu <samhudotsamhu gmail.com> writes:
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;
Apr 11 2010
next sibling parent Sam Hu <samhudotsamhu gmail.com> writes:
Continued:
Please be aware that the last } of function testFoo was missing.

It compiled pretty good by bud -O -release -cleanup uniword.d
Apr 11 2010
prev sibling next sibling parent Sam Hu <samhudotsamhu gmail.com> writes:
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.
Apr 11 2010
prev sibling parent "Lars T. Kyllingstad" <public kyllingen.NOSPAMnet> writes:
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;
 
Apr 12 2010