boostorg / boostorg/multi_array

Return of bug#6554 (Compiler error dereferencing multi_array value via an iterator)

Aperta
#31 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
32
Fork
39
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

The bug described in https://svn.boost.org/trac10/ticket/6554 seems to return. I tried the example from this bug in godbolt: https://godbolt.org/z/4vMf8oo4q and it fails to compile. The code I used is:
```c++
#include

struct data
{
int value;
};
typedef boost::multi_array array_type;

int main() {
array_type a(boost::extents[4][5]);

// ERROR: Cannot compile this line
a.begin()->begin()->value = 7;

// Compiles successfully
(*a.begin()->begin()).value = 5;
return 0;
}
```
All versions of boost on godbolt (1.64 to 1.79) seem to be affected.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.