D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7235 - throwing away return value of pure function should yield an error
Summary: throwing away return value of pure function should yield an error
Status: RESOLVED DUPLICATE of issue 3882
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: accepts-invalid, diagnostic
Depends on:
Blocks:
 
Reported: 2012-01-05 14:15 UTC by Trass3r
Modified: 2012-01-05 14:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Trass3r 2012-01-05 14:15:03 UTC
pure int foo() {return 1;}

void main()
{
	foo();
}

Doesn't make any sense to me.

closely related to http://d.puremagic.com/issues/show_bug.cgi?id=3572
Comment 1 Trass3r 2012-01-05 14:38:57 UTC

*** This issue has been marked as a duplicate of issue 3882 ***