public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/57682] Uniform initialization syntax rejected in function-try-block
[not found] <bug-57682-4@http.gcc.gnu.org/bugzilla/>
@ 2013-06-23 9:23 ` paolo.carlini at oracle dot com
2013-06-23 9:51 ` paolo.carlini at oracle dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-06-23 9:23 UTC (permalink / raw)
To: gcc-bugs
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;
};
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/57682] Uniform initialization syntax rejected in function-try-block
[not found] <bug-57682-4@http.gcc.gnu.org/bugzilla/>
2013-06-23 9:23 ` [Bug c++/57682] Uniform initialization syntax rejected in function-try-block paolo.carlini at oracle dot com
@ 2013-06-23 9:51 ` paolo.carlini at oracle dot com
2013-06-23 13:40 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-06-23 9:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57682
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Something is already going wrong as early as
cp_parser_save_member_function_body: at line #22818 the whole
function-try-block is not properly handled in case of uniform initialization
syntax, apparently because the closed '}' of 'f{ func }' is confused with the
closed '}' of 'f( func ) { }', and the former at variance with the latter
isn't followed by 'catch'.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/57682] Uniform initialization syntax rejected in function-try-block
[not found] <bug-57682-4@http.gcc.gnu.org/bugzilla/>
2013-06-23 9:23 ` [Bug c++/57682] Uniform initialization syntax rejected in function-try-block paolo.carlini at oracle dot com
2013-06-23 9:51 ` paolo.carlini at oracle dot com
@ 2013-06-23 13:40 ` paolo.carlini at oracle dot com
2013-06-25 8:50 ` paolo.carlini at oracle dot com
2013-06-28 8:54 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-06-23 13:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57682
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Easy to fix.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/57682] Uniform initialization syntax rejected in function-try-block
[not found] <bug-57682-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2013-06-23 13:40 ` paolo.carlini at oracle dot com
@ 2013-06-25 8:50 ` paolo.carlini at oracle dot com
2013-06-28 8:54 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-06-25 8:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57682
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Patch here: http://gcc.gnu.org/ml/gcc-patches/2013-06/msg01352.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/57682] Uniform initialization syntax rejected in function-try-block
[not found] <bug-57682-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2013-06-25 8:50 ` paolo.carlini at oracle dot com
@ 2013-06-28 8:54 ` paolo.carlini at oracle dot com
4 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-06-28 8:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57682
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.9.0
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed for 4.9.0.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-28 8:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-57682-4@http.gcc.gnu.org/bugzilla/>
2013-06-23 9:23 ` [Bug c++/57682] Uniform initialization syntax rejected in function-try-block paolo.carlini at oracle dot com
2013-06-23 9:51 ` paolo.carlini at oracle dot com
2013-06-23 13:40 ` paolo.carlini at oracle dot com
2013-06-25 8:50 ` paolo.carlini at oracle dot com
2013-06-28 8:54 ` paolo.carlini at oracle dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).