https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79741

--- Comment #3 from Jim Michaels <jmichae3 at yahoo dot com> ---
strange, this seems to work. small source. but big complicated source breaks.
#include <vector>
#include <initializer_list>
#include <cstdint>
#include <iostream>
#include <algorithm>
int main(int argc,char**argv) {
typedef struct {int i1;intmax_t i2;} ST;
std::vector<ST> vst={
{0,10},
{1,9},
{2,8},
{3,7},
{4,6},
{5,5}
};
int x=vst[1].i2;
std::cout<<x<<std::endl;
return 0;
}
/*
 Mon 02/27/2017 15:27:35.09
L:\projects\lib\atoi64\tests>unit-test-vector-struct-member-access.exe
9

 Mon 02/27/2017 15:27:48.29 L:\projects\lib\atoi64\tests>
*/

Reply via email to