http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60683

            Bug ID: 60683
           Summary: confused by earlier errors, bailing out on incorrect
                    std::initializer_list
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vanyacpp at gmail dot com

The following code leads to error "confused by earlier errors, bailing out":

namespace std
{
    template<class T>
    struct initializer_list
    {
    };
}

struct X
{
    explicit X(std::initializer_list<int> x);
};

int test()
{
    X x  = {10, 10, 10};
}

Reply via email to