[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#742574: g++-4.7: please backport the latest point release to wheezy



Package: g++-4.7
Version: 4.7.2-5
Severity: normal

Dear Maintainer,

Please upgrade gcc to 4.7.3, I keep writing code that hits a regression
in 4.7.2 (see below).



// compile with g++ -std=c++0x bug.cpp
// works with: gcc 4.6.4, gcc 4.7.3, gcc 4.8.2
// fails with: gcc 4.7.2
struct Foo
{
    template<unsigned long n>
    Foo(const char (&)[n]) {}
};

int main()
{
    Foo arr[] =
    {
        "foo",
        "bar",
    };
}


Reply to: