2149 – Auto variables loose the keyword "auto" in di files generated with -H option.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2149 - Auto variables loose the keyword "auto" in di files generated with -H option.
Summary: Auto variables loose the keyword "auto" in di files generated with -H option.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 minor
Assignee: Walter Bright
URL:
Keywords: wrong-code
Depends on:
Blocks:
Reported: 2008年06月13日 08:23 UTC by John Kiro
Modified: 2015年06月09日 01:21 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description John Kiro 2008年06月13日 08:23:25 UTC
When generating an interface file using the -H option for a class like this
 class Point {
	
	 auto x = 10;
 	 uint y = 20;
	
 }
The generated interface file misses the "auto" keyword:
 // D import file generated from 'point.d'
 class Point
 {
 x = 10;
 uint y = 20;
 }
This causes compilation errors when using this interface file:
 no identifier for declarator x
 Error: identifier 'x' is not defined
 Error: x is used as a type
 variable voids have no value
Comment 1 John Kiro 2008年06月20日 05:23:32 UTC
Fixed in D versions 2.015 & 1.031.


AltStyle によって変換されたページ (->オリジナル) /