aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/semantic2.d
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-03-21 16:52:40 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2022-03-21 19:51:50 +0100
commitfbdaa58162ee4189f441b75170af89215465d189 (patch)
tree77c5816b721cad2691bea1d228cb5ecc31568f9c /gcc/d/dmd/semantic2.d
parent4a3073f04e8b7987ad7bfe1bc23bfeb1d627ee6a (diff)
downloadgcc-fbdaa58162ee4189f441b75170af89215465d189.zip
gcc-fbdaa58162ee4189f441b75170af89215465d189.tar.gz
gcc-fbdaa58162ee4189f441b75170af89215465d189.tar.bz2
d: Merge upstream dmd 2503f17e5, phobos a74fa63e6.
D front-end changes: - Import dmd mainline development. - Removed internal d_intN and d_unsN aliases to stdint types, which caused a regression on Solaris where int8_t is a char (PR104911). Phobos changes: - Import phobos mainline development. PR d/104911 gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 2503f17e5. * d-convert.cc (convert_expr): Replace d_uns64 with dinteger_t. * d-lang.cc: Remove dmd/root/file.h include. (d_handle_option): Update for new front-end interface. (d_parse_file): Likewise. libphobos/ChangeLog: * src/MERGE: Merge upstream phobos a74fa63e6.
Diffstat (limited to 'gcc/d/dmd/semantic2.d')
-rw-r--r--gcc/d/dmd/semantic2.d11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/d/dmd/semantic2.d b/gcc/d/dmd/semantic2.d
index 85c4d5b..b9029a1 100644
--- a/gcc/d/dmd/semantic2.d
+++ b/gcc/d/dmd/semantic2.d
@@ -330,11 +330,14 @@ private extern(C++) final class Semantic2Visitor : Visitor
// gets imported, it is unaffected by context.
Scope* sc = Scope.createGlobal(mod); // create root scope
//printf("Module = %p\n", sc.scopesym);
- // Pass 2 semantic routines: do initializers and function bodies
- for (size_t i = 0; i < mod.members.dim; i++)
+ if (mod.members)
{
- Dsymbol s = (*mod.members)[i];
- s.semantic2(sc);
+ // Pass 2 semantic routines: do initializers and function bodies
+ for (size_t i = 0; i < mod.members.dim; i++)
+ {
+ Dsymbol s = (*mod.members)[i];
+ s.semantic2(sc);
+ }
}
if (mod.userAttribDecl)
{