Launchpad has imported 1 comments from the remote bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61046.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2014-05-03T16:28:35+00:00 Doko-v wrote:

4.7 rejects this without an ICE, the ICE is seen on 4.8, 4.9 branches
and trunk.

$ cat tst.cc 
#include <array>
  const int i = 0;
  std::array<int, 1> bar = {
    [i] = 0
  };

$ g++-4.7 -Wall -std=gnu++0x tst.cc 
tst.cc:5:3: error: 'std::array<int, 1ul>' has no non-static data member named 
'i'

$ g++-4.8 -Wall -std=gnu++0x tst.cc 
tst.cc:5:3: internal compiler error: in lookup_field_1, at cp/search.c:384
   };
   ^
Please submit a full bug report,
with preprocessed source if appropriate.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/gcc-4.8/+bug/1313102/comments/2


** Changed in: gcc
       Status: Unknown => New

** Changed in: gcc
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1313102

Title:
  internal compiler error with std::array designated initialization

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/1313102/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to