[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-05 Thread fabien at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

fabien at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #9 from fabien at gcc dot gnu.org 2011-12-05 22:13:19 UTC ---
Fixed in r182029.


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-04 Thread fabien at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

fabien at gcc dot gnu.org changed:

   What|Removed |Added

 CC||marc.glisse at normalesup
   ||dot org

--- Comment #8 from fabien at gcc dot gnu.org 2011-12-04 22:07:45 UTC ---
*** Bug 51319 has been marked as a duplicate of this bug. ***


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-02 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

--- Comment #7 from Paolo Carlini  2011-12-02 
10:13:02 UTC ---
Sure, agreed on that.


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-01 Thread fabien at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

--- Comment #6 from fabien at gcc dot gnu.org 2011-12-02 07:34:52 UTC ---
(In reply to comment #4)
> About the garbled error message - the second issue - the fix should be rather
> trivial, just matter of handling USING_DECL in dump_expr together with the
> other *_DECL and forwarding to dump_decl.

Although that seems quite simple, I think we'd need an invalid testcase showing
that this change is necessary. In this PR, the testcase is a valid code.


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-01 Thread fabien at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

fabien at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |ASSIGNED
   Last reconfirmed||2011-12-01
 CC||fabien at gcc dot gnu.org
 AssignedTo|unassigned at gcc dot   |fabien at gcc dot gnu.org
   |gnu.org |
 Ever Confirmed|0   |1

--- Comment #5 from fabien at gcc dot gnu.org 2011-12-01 23:43:15 UTC ---
I am testing a fix. Paolo, thanks for retrieving the duplicate. Diego, this is
the one I was talking about (off list).


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

--- Comment #4 from Paolo Carlini  2011-12-01 
23:19:05 UTC ---
About the garbled error message - the second issue - the fix should be rather
trivial, just matter of handling USING_DECL in dump_expr together with the
other *_DECL and forwarding to dump_decl.


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

--- Comment #3 from Paolo Carlini  2011-12-01 
23:14:05 UTC ---
Diego, I'm pretty sure this is a dup of PR51319.


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-01 Thread dnovillo at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

--- Comment #2 from dnovillo at google dot com  
2011-12-01 22:39:02 UTC ---
On Thu, Dec 1, 2011 at 17:19, paolo.carlini at oracle dot com
 wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382
>
> --- Comment #1 from Paolo Carlini  
> 2011-12-01 22:19:10 UTC ---
> PR51319 (or PRs referenced therein) ?

Sorry?


[Bug c++/51382] Incorrect diagnostic "cannot appear in a constant-expression"

2011-12-01 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51382

--- Comment #1 from Paolo Carlini  2011-12-01 
22:19:10 UTC ---
PR51319 (or PRs referenced therein) ?