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 587286 - valac stops with assertion when 'catch' has no arguments
valac stops with assertion when 'catch' has no arguments
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Errors
0.7.x
Other All
: Normal major
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-29 09:48 UTC by Kuteynikov
Modified: 2009-08-16 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kuteynikov 2009-06-29 09:48:42 UTC
Please describe the problem:
When I write try{} catch {}, and catch has no arguments, valac doesn't show valid error message, but stops with assertion "** (valac:13931): CRITICAL **: vala_error_type_real_compatible: assertion `target_type != NULL' failed"

Steps to reproduce:
1. write try{} catch {} block in your program. There should be no parentheses and arguments after catch.
2. compile it


Actual results:
valac shows assertion "** (valac:13931): CRITICAL **: vala_error_type_real_compatible: assertion `target_type != NULL' failed"

Expected results:
compile my program

Does this happen every time?
yes

Other information:
Comment 1 Jürg Billeter 2009-08-16 21:19:54 UTC
Cannot reproduce this with master and following simple test case:

void main () {
	try {
	} catch {
	}
}