Skip to content
Snippets Groups Projects
Commit 060e7327 authored by Mark Mitchell's avatar Mark Mitchell Committed by Mark Mitchell
Browse files

re PR c++/23841 (Floating-point literals cast to integral types should be...

re PR c++/23841 (Floating-point literals cast to integral types should be accepted in integer constant expressions)

	PR c++/23841
	* parser.c (cp_parser_primary_expression): Recognize the closing
	">" of a template-argument-list after a floating-point literal as
	the end of a cast expression.

	PR c++/23841
	* g++.dg/parse/template17.C: New test.

From-SVN: r104208
parent 2eef28ec
No related branches found
No related tags found
Loading
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