Skip to content
Snippets Groups Projects
Commit 8189838d authored by Jason Merrill's avatar Jason Merrill
Browse files

c++: tidy auto deduction

In r185768 I added the !FUNCTION_DECL check, but we might as well just check
for variable; nothing else should take this path, and asserting as much
doesn't regress anything.

gcc/cp/ChangeLog:

	* decl.cc (cp_finish_decl): Only consider auto for vars.
parent fd0d3e91
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