Landing: 90ec6eeca09f

Project / Subsystem

gcc / c++

Date

2026-05-07

Author

Marek Polacek

Commit

90ec6eeca09f5a411fd7878e2532a7ac2f2e3d71

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
c++
patch_id
commit_hash
90ec6eeca09f5a411fd7878e2532a7ac2f2e3d71
source_type
github
headline
C++: Fixed internal compiler error with invalid template argument.
tldr
Addresses an ICE caused by temporary objects in template argument deduction by skipping a problematic check for ignored declarations.
author
Marek Polacek
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • c++
  • templates
  • bugfix
  • ICE
discussion_id_link
bugzilla_pr
date
2026-05-07T00:00:00.000Z

An internal compiler error (ICE) occurred when processing invalid template arguments due to a faulty assertion. The assertion checked for specific properties of template arguments, but failed when temporary objects were involved. This commit relaxes the assertion to allow ignored declarations, resolving the ICE. New test cases cover the reported issue.