After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 627412 - simple hello world generates wrong c code
simple hello world generates wrong c code
Status: RESOLVED DUPLICATE of bug 618348
Product: vala
Classification: Core
Component: Code Generator
0.9.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-19 19:00 UTC by rofl0r
Modified: 2010-08-20 20:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description rofl0r 2010-08-19 19:00:23 UTC
using 0.9.6/7 and --profile=posix

using Posix;

[Compact]
public class Test {
	public void test() {
		stdout.puts ("foo\n");
	}
}

static int main(){
	var t = new Test();
	t.test();
	return 0;
}


this yields the following errors
valac --profile=posix hello.vala 
hello.vala.c:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
hello.vala.c:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
hello.vala.c:13: error: expected ‘)’ before ‘*’ token
hello.vala.c: In function ‘_vala_main’:
hello.vala.c:19: error: ‘Test’ undeclared (first use in this function)
hello.vala.c:19: error: (Each undeclared identifier is reported only once
hello.vala.c:19: error: for each function it appears in.)
hello.vala.c:19: error: ‘t’ undeclared (first use in this function)
hello.vala.c:23: error: ‘NULL’ undeclared (first use in this function)
Comment 1 rofl0r 2010-08-19 21:14:55 UTC
seems this is a duplicate of Bug 618348
Comment 2 Luca Bruno 2010-08-20 20:14:45 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 618348 ***