Commit graph

11 commits

Author SHA1 Message Date
Nick Treleaven
e732128a11 Avoid phobos path using #16587 fix 2024-09-05 08:35:03 +08:00
Nick Treleaven
39dffd8e5f
Fix Bugzilla 24387 - Base class construction ignores private (#16180)
* Fix Bugzilla 24387 - Base class construction ignores private

* Fix access checks for ctor overloads
2024-02-13 14:21:47 +02:00
FeepingCreature
421ebfe8b5
Fix issue 23947: If checking access after overload resolution, only check the specific overload selected, not the most public overload of the set. (#15282)
This deprecation also covers the deprecation for issue 21275.
This is a deprecation because making it an error would force issue 21275 to be an error as well.
2023-06-13 10:20:08 +03:00
Iain Buclaw
edfa97d800 Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-05-16 10:17:06 +00:00
Dennis Korpel
57b3319466 Fix 23908 - confusing nonexistent import hint on cyclic import 2023-05-09 14:42:12 +02:00
Razvan Nitu
c2f8f32de5
Fix Issue 23873 - [ICE] segfault on imported static if ; else auto x (#15168) 2023-05-03 11:08:05 +03:00
Razvan Nitu
997b00bf45
Fix Issue 22857 - Segfault for malformed static if in imported template (#15097) 2023-04-13 18:10:43 +03:00
Nick Treleaven
09f49c4fb0 Fix missing overloads in call candidate list
Also fix missing non-template function parameter.

Part of Issue 21338 - Confusing error message for template overload resolution failure.
2022-10-31 23:14:39 +01:00
WebFreak001
f01795072b Add supplemental scope info to mixin T; errors
Fix issue 7372 - Error provides too little information to diagnose the problem (error: undefined identifier)

Mixin templates are often defined inside libraries and may require the
definition of certain symbols alongside them (for example a text
templating library mapping struct fields to HTML text blocks could
attempt to simply access member variables) - Fixing compilation errors
where such identifiers are not found would then usually not require
code changes inside the library, but rather in the user code, where the
mixin is written.

So this PR adds a supplemental `parent scope from here: '...'` message,
which may be used from IDEs to show errors on the mixin line or just for
the user to read it in the command line and see where in the user code
the error originates from.
2022-09-06 01:26:25 +02:00
RazvanN7
22d5166dca Fix Issue 15525 - SEGV running semantic analysis on non-root decl that has errors 2022-08-11 09:30:18 +00:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00