Skip to content

Commit

Permalink
Resolve badly placed assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Etienne Cimon committed Dec 11, 2014
1 parent 4539521 commit 32f2b44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/func.c
Original file line number Diff line number Diff line change
Expand Up @@ -3305,6 +3305,11 @@ FuncDeclaration *resolveFuncCall(Loc loc, Scope *sc, Dsymbol *s,
}
else
{
if (!fd) {
::error(loc, "%s cannot deduce function from argument types !(%s)%s, candidates are:",
s->toChars(), tiargsBuf.peekString(), fargsBuf.peekString());
return NULL;
}
assert(fd);

bool hasOverloads = fd->overnext != NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/posix.mak
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ CFLAGS := $(WARNINGS) \
ifneq (,$(DEBUG))
ENABLE_DEBUG := 1
endif

# ENABLE_DEBUG := 1
# Append different flags for debugging, profiling and release. Define
# ENABLE_DEBUG and ENABLE_PROFILING to enable profiling.
ifdef ENABLE_DEBUG
Expand Down

0 comments on commit 32f2b44

Please sign in to comment.