[Issue 12160] New: UDA related regressions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 14 09:41:45 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12160

           Summary: UDA related regressions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: nazriel6969 at gmail.com


--- Comment #0 from Damian Ziemba <nazriel6969 at gmail.com> 2014-02-14 09:41:42 PST ---
Hello.

While building unittests for Vibe.d I'm hiting regression.

It happens both with ~master and ~2.065 branch.

DMD output:
---
Building configuration "unittest", build type unittest
Compiling...
source/vibe/internal/meta/funcattr.d(162): Error: undefined identifier foo
source/vibe/internal/meta/funcattr.d(133): Error: template instance
vibe.internal.meta.funcattr.__unittestL155_69.AttributedParameterMetadata!(bar)
error instantiating
source/vibe/internal/meta/funcattr.d(167):        instantiated from here:
IsAttributedParameter!(bar, "name1")
source/vibe/internal/meta/funcattr.d(167): Error: template instance
vibe.internal.meta.funcattr.__unittestL155_69.IsAttributedParameter!(bar,
"name1") error instantiating
source/vibe/internal/meta/funcattr.d(335): Error: undefined identifier
attached1
source/vibe/internal/meta/funcattr.d(335): Error: undefined identifier
attached2
source/vibe/internal/meta/funcattr.d(338): Error: template instance
vibe.internal.meta.funcattr.__unittestL330_74.AttributedParameterMetadata!(foo)
error instantiating
source/vibe/internal/meta/funcattr.d(721): Error: undefined identifier
evaluator
source/vibe/internal/meta/funcattr.d(721): Error: undefined identifier
evaluator
source/vibe/internal/meta/funcattr.d(721): Error: undefined identifier
modificator
source/vibe/internal/meta/funcattr.d(777): Error: template instance
vibe.internal.meta.funcattr.AttributedFunction!(sum, __T5GroupTAyaTAyaZ) error
instantiating
source/vibe/internal/meta/funcattr.d(728):        instantiated from here:
createAttributedFunction!(sum, string, string)
source/vibe/internal/meta/funcattr.d(728): Error: template instance
vibe.internal.meta.funcattr.createAttributedFunction!(sum, string, string)
error instantiating
source/vibe/internal/meta/funcattr.d(753): Error: undefined identifier
evaluator
source/vibe/internal/meta/funcattr.d(753): Error: undefined identifier
evaluator
source/vibe/internal/meta/funcattr.d(753): Error: undefined identifier
modificator
source/vibe/internal/meta/funcattr.d(777): Error: template instance
vibe.internal.meta.funcattr.AttributedFunction!(sum, __T5GroupTAyaTAyaZ) error
instantiating
source/vibe/internal/meta/funcattr.d(759):        instantiated from here:
createAttributedFunction!(sum, string, string)
source/vibe/internal/meta/funcattr.d(759): Error: template instance
vibe.internal.meta.funcattr.createAttributedFunction!(sum, string, string)
error instantiating
source/vibe/internal/meta/uda.d(72): Error: undefined identifier Attribute
source/vibe/internal/meta/uda.d(72): Error: undefined identifier Attribute
source/vibe/internal/meta/uda.d(75): Error: template instance
vibe.internal.meta.uda.__unittestL68_84.findFirstUDA!(string, symbol) error
instantiating
source/vibe/internal/meta/uda.d(100): Error: static assert  (is(result0.value
== Attribute)) is false
Error: DMD compile run failed with exit code 1
---

It works with 2.064.2 and with LDC2-2.065-b3-merge 

Line at which DMD fails:
---
@before!foo("name1")
void bar(int name1, double name2)
{
}
---

Makes me believe that it is UDA related regression.

Link to full discussion:
https://github.com/rejectedsoftware/vibe.d/issues/526

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list