[Bug c++/57682] Uniform initialization syntax rejected in function-try-block
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Sun Jun 23 09:23:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57682
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-06-23
Ever confirmed|0 |1
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is enough:
#define OOPS
struct Class
{
Class(int func)
try
#ifdef OOPS
: f{ func } { }
#else
: f( func ) { }
#endif
catch( ... ) { }
private:
int f;
};
More information about the Gcc-bugs
mailing list