Use of IA for PR - my POV

user1234 user1234 at 12.de
Tue Feb 17 07:28:06 UTC 2026


On Tuesday, 10 February 2026 at 20:58:30 UTC, monkyyy wrote:
> On Tuesday, 10 February 2026 at 14:14:00 UTC, user1234 wrote:
>> 
>> https://github.com/dlang/dmd/pull/22550
>> (ai slop)
>
>>- Ambiguous template instantiation without parens crashes 
>>compiler
>
> Is there a real example of this? I cant imagine how a template 
> init can be ambiguous

That is just the kind of PL bugs people discover when they write 
bad code. Bad code means failed semantics. Failed semantics means 
error message. They see an error message that has no sense and 
open a ticket. That's it. Low priority. It's not even an "accept 
invalid" (remember the bugzilla times ^^).

Anyway to come back to the PR, one interesting detail, is the 
verbose style. I think an actual programmer would rather combine 
in an OrOr:

```d
if (auto se = e.isScopeExp())
{
     const ti = se.sds.isTemplateInstance();
     if (ti && !ti.aliasdecl && ti.tempdecl) || (se.sds && 
se.sds.isOverloadSet())
         error(e.loc, "`%s` matches multiple overloads exactly", 
se.sds.toChars());
}
error(e.loc, "`%s` has no effect", e.toErrMsg());
return true;
```


More information about the Digitalmars-d mailing list