[Issue 4699] New: Functions in peer scopes cannot have the same name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 21 00:20:02 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4699
Summary: Functions in peer scopes cannot have the same name
Product: D
Version: D2
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: wayo.cavazos at gmail.com
--- Comment #0 from Eduardo Cavazos <wayo.cavazos at gmail.com> 2010-08-21 00:19:59 PDT ---
This program produces an error:
void main ()
{
{ int f0 () { return 10 ; } }
{ int f0 () { return 20 ; } }
}
$ rdmd test_scope_a.d
test_scope_a.d(6): Error: declaration f0 is already defined in another scope in
main
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list