[Bug c++/51674] New: No errors on non-existent symbol in costructor

2011-12-24 Thread so.townsend at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51674

 Bug #: 51674
   Summary: No errors on non-existent symbol in costructor
Classification: Unclassified
   Product: gcc
   Version: 4.6.2
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: so.towns...@gmail.com


Created attachment 26183
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26183
Example of problem

Creating a class with a constructor that calls another construct with a non
existent symbol yields a segfault and no compile time errors or warnings.

Both -std=C++0x and standard compilation have the same issue.


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

2011-12-24 Thread so.townsend at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51674

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

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