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]

[Bug c++/51674] No errors on non-existent symbol in constructor


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

--- Comment #1 from So Townsend <so.townsend at gmail dot com> 2011-12-24 14:02:34 UTC ---
Comment on attachment 26183
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26183
Example of problem

>#include <iostream>
>
>class Foo
>{
>public:
>	Foo()
>	{
>		Foo(a);
>	}
>
>	Foo(int x)
>	{
>	}
>};
>
>int main()
>{
>	Foo f;
>	return 0;
>}


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