This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48185] if(struct ...)
- From: "lisp2d at lisp2d dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2011 17:15:29 +0000
- Subject: [Bug c++/48185] if(struct ...)
- Auto-submitted: auto-generated
- References: <bug-48185-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48185
--- Comment #2 from Lisp2D <lisp2d at lisp2d dot net> 2011-03-18 17:15:23 UTC ---
Code
{ struct passwd*pwd(getpwuid(...));
if(pwd)return true;}
is still compiled.
Code
if(struct passwd*pwd=getpwuid(...))return;
compiled too.
But
if(struct passwd*pwd(getpwuid(...)))return;
will not.
Who is right?