Thread overview | ||||||
---|---|---|---|---|---|---|
|
September 17, 2010 [Issue 4884] New: Using template struct parameters in method definition fails with "parameter _param_0 is already defined" | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=4884 Summary: Using template struct parameters in method definition fails with "parameter _param_0 is already defined" Product: D Version: D2 Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: osa8aso@gmail.com --- Comment #0 from osa8aso@gmail.com 2010-09-17 16:15:29 PDT --- I'm trying to define a struct template where template parameters are used to define struct methods: ---- struct A( T... ) { void foo( T ) {} void bar( bool, T ) {} } void main() { auto a = A!( int )(); } ---- This fails to compile (dmd 2.049), producing the following errors: a.d(3): Error: function a.A!(int).A.bar parameter bar._param_0 is already defined a.d(7): Error: template instance a.A!(int) error instantiating -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 01, 2012 [Issue 4884] Using template struct parameters in method definition fails with "parameter _param_0 is already defined" | ||||
---|---|---|---|---|
| ||||
Posted in reply to osa8aso@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=4884 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid Platform|Other |All OS/Version|Linux |All --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-06-01 06:55:04 PDT --- https://github.com/D-Programming-Language/dmd/pull/975 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 15, 2012 [Issue 4884] Using template struct parameters in method definition fails with "parameter _param_0 is already defined" | ||||
---|---|---|---|---|
| ||||
Posted in reply to osa8aso@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=4884 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
July 02, 2012 [Issue 4884] Using template struct parameters in method definition fails with "parameter _param_0 is already defined" | ||||
---|---|---|---|---|
| ||||
Posted in reply to osa8aso@gmail.com | http://d.puremagic.com/issues/show_bug.cgi?id=4884 --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2012-07-01 19:02:03 PDT --- Merged commit: https://github.com/D-Programming-Language/dmd/commit/a5587d195d4adbe4ee2c9ad50eea8f643aaabac2 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation