Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: darpeer at hotmail dot com
void f(int n)
{
int a[n];
for (auto& i : a)
{
i = &i - a;
}
[&a] (auto m)
{
for (auto i : a)
{
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59271
--- Comment #1 from darpeer at hotmail dot com ---
#include
using namespace std;
void f(int n)
{
int a[n];
for (auto& i : a)
{
i = &i - a;
}
[&a] (auto m)
{
for (auto i : a)
{
cout
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: darpeer at hotmail dot com
Target Milestone: ---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86099
--- Comment #1 from darpeer at hotmail dot com ---
Created attachment 44255
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44255&action=edit
Compresses source file.
/tmp/file.prepro.cpp: In instantiation of ‘constexpr std::pair&l
++
Assignee: unassigned at gcc dot gnu.org
Reporter: darpeer at hotmail dot com
Target Milestone: ---
cd /extra/darse/llvm-svn/objects/tools/lld/ELF &&
/home/darse/ubuntu-17.04/bin/g++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_M
Assignee: unassigned at gcc dot gnu.org
Reporter: darpeer at hotmail dot com
Target Milestone: ---
Using gdb, two struct members end up at the same offset.
gcc (GCC) 6.0.0 20150418 (experimental) and older.
gcc -c -O0 -ggdb3 struct-example.C
cat struct-example.C
struct ODD_S {
char a