Title
Function pointer equality
Status
nad
Section
7.6.10 [expr.eq]
Submitter
Nikolay Ivchenkov

Created on 2011-09-30.00:00:00 last changed 156 months ago

Messages

Date: 2012-02-15.00:00:00

Rationale (February, 2012):

The Standard is clear on the requirements, and implementations are free to optimize within the constraints of the “as-if” rule.

Date: 2022-11-20.07:54:16

According to 7.6.10 [expr.eq] paragraph 2, two function pointers only compare equal if they point to the same function. However, as an optimization, implementations are currently aliasing functions that have identical definitions. It is not clear whether the Standard needs to deal explicitly with this optimization or not.

History
Date User Action Args
2012-02-27 00:00:00adminsetmessages: + msg3842
2012-02-27 00:00:00adminsetstatus: open -> nad
2011-09-30 00:00:00admincreate