This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.2 critical bug?


this seem to be a bug, hope I'm not missing something:

--------------------------------------
struct type_1
{};

struct type_2
{};

struct test
{
        test(const type_1&)
        {        }
};

int main()
{
        test p(type_2());
}
--------------------------------------

why this compiles without errors!?

stefano


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]