- Title
- alignof applied to array of unknown size
- Status
- cd3
- Section
- 7.6.2.6 [expr.alignof]
- Submitter
- Nikolay Ivchenkov
Created on 2011-04-26.00:00:00 last changed 152 months ago
Messages
Date: 2012-02-15.00:00:00
[Voted into the WP at the February, 2012 meeting;
moved to DR at the October, 2012 meeting.]
Date: 2011-08-15.00:00:00
Proposed resolution (August, 2011): Change 7.6.2.6 [expr.alignof] paragraph 1 as follows:
An alignof expression yields the alignment requirement of its
operand type. The operand shall be a type-id representing a
complete object type or an array thereof or a reference to
a complete
object type one of those types.
Date: 2012-09-24.00:00:00
According to 7.6.2.6 [expr.alignof] paragraph 1, This (presumably unintentionally) excludes a reference to an array
with an unknown bound but a complete element type; the bound is not
needed to determine the alignment of the array.
An alignof expression yields the alignment requirement of its
operand type. The operand shall be a type-id representing a
complete object type or an array thereof or a reference to a complete
object type.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2014-03-03 00:00:00 | admin | set | status: drwp -> cd3 |
| 2012-11-03 00:00:00 | admin | set | status: dr -> drwp |
| 2012-09-24 00:00:00 | admin | set | messages: + msg3997 |
| 2012-02-27 00:00:00 | admin | set | messages: + msg3792 |
| 2012-02-27 00:00:00 | admin | set | status: ready -> dr |
| 2011-04-26 00:00:00 | admin | create | |