Skip to content
Snippets Groups Projects
Commit 8063de4a authored by Iain Buclaw's avatar Iain Buclaw
Browse files

d: Set doing_semantic_analysis_p before calling functionSemantic3

As functions which have semantic analysis ran late may still require
the use of CTFE built-ins to be evaluated.

gcc/d/ChangeLog:

	* decl.cc (DeclVisitor::visit (FuncDeclaration *)): Set
	doing_semantic_analysis_p before calling functionSemantic3.

gcc/testsuite/ChangeLog:

	* gdc.dg/ctfeintrinsics.d: New test.
parent dfd39ed3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment