C++11 Internal compiler error if too few arguments passed to std::make_shared

Bug #1236454 reported by Maciej Cencora
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.7 (Ubuntu)
New
Undecided
Unassigned

Bug Description

An attempt to compile following piece of code in C++11 mode with GCC 4.7.3
results in internal compiler error.

#include <memory>

struct A
{
    A(int a, float b) {}
};

int main()
{
    std::make_shared<A>(2);
}

Error messages is correctly printed on GCC 4.6 and GCC 4.8.

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: g++-4.7 4.7.3-7ubuntu3
ProcVersionSignature: Ubuntu 3.11.0-11.17-generic 3.11.3
Uname: Linux 3.11.0-11-generic x86_64
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
Date: Mon Oct 7 18:14:38 2013
ExecutablePath: /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus
InstallationDate: Installed on 2012-08-31 (402 days ago)
InstallationMedia: Kubuntu 12.10 "Quantal Quetzal" - Alpha amd64 (20120828.1)
MarkForUpload: True
SourcePackage: gcc-4.7
UpgradeStatus: Upgraded to saucy on 2013-07-17 (82 days ago)

Revision history for this message
Maciej Cencora (m-cencora) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.