← Back to team overview

touch-packages team mailing list archive

[Bug 1313102] Re: internal compiler error with std::array designated initialization

 

This bug was fixed in the package gccgo-4.9 - 4.9.1-0ubuntu1

---------------
gccgo-4.9 (4.9.1-0ubuntu1) trusty-proposed; urgency=medium

  * Upload the final GCC 4.9.1 release.
  * Merge changes from gcc-4.9 4.9.0-2ubuntu1, including:
    - Fix PR go/60931, garbage collector issue with non 4kB system page size.
      LP: #1304754.
    - Fix wrong-code issue in the little endian vector API (ppc64el).
      LP: #1311128.
    - Fix ABI incompatibility between POWER and Z HTM builtins and intrinsics.
      LP: #1320292.
    - Fix an ICE with invalid code. PR c++/61046. LP: #1313102.
    - gccgo: Don't overwrite memory if an archive has a bad file name.
  * Include the cc1 binary into the gccgo-4.9 package.
  * Do not build-depend on sdt-systemtap for the trusty upload.
  * Warn about ppc ELFv2 ABI issues, which will change in GCC 4.10.
 -- Matthias Klose <doko@xxxxxxxxxx>   Thu, 17 Jul 2014 15:51:15 +0200

** Changed in: gccgo-4.9 (Ubuntu Trusty)
       Status: Invalid => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to gcc-4.8 in Ubuntu.
https://bugs.launchpad.net/bugs/1313102

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

Status in The GNU Compiler Collection:
  New
Status in “gcc-4.8” package in Ubuntu:
  Fix Released
Status in “gcc-4.9” package in Ubuntu:
  Fix Released
Status in “gccgo-4.9” package in Ubuntu:
  Invalid
Status in “gcc-4.8” source package in Trusty:
  New
Status in “gcc-4.9” source package in Trusty:
  Invalid
Status in “gccgo-4.9” source package in Trusty:
  Fix Released

Bug description:
  The following code fails to compile with g++-4.8:

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

  I have since learned that designated initialization is not supported
  in (GNU) C++.  In that case I would have expected a syntax error.

  This is the compilation command and its output:

    $ g++-4.8 -Wall -std=gnu++11 main.cpp
    main.cpp:5:1: internal compiler error: in lookup_field_1, at cp/search.c:384                 
     };                                                                                                  
     ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
    Preprocessed source stored into /tmp/ccUsV9BC.out file, please attach this to your bugreport.

  The preprocessed source file is attached.  g++-4.8 --version reports
  g++-4.8 (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1.  I installed this package
  using the instructions given in this answer:
  http://askubuntu.com/a/271561.  Ubuntu release and package version
  are:

  $ lsb_release -rd
  Description:    Ubuntu 12.04.4 LTS
  Release:        12.04
  $ apt-cache policy g++-4.8
  g++-4.8:
    Installed: 4.8.1-2ubuntu1~12.04
    Candidate: 4.8.1-2ubuntu1~12.04
    Version table:
   *** 4.8.1-2ubuntu1~12.04 0
          500 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu/ precise/main i386 Packages
          100 /var/lib/dpkg/status

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