public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48935] Name lookup error at enum class
  2011-05-09 14:12 [Bug c++/48935] New: Name lookup error at enum class takechi101010 at gmail dot com
@ 2011-05-09 14:10 ` takechi101010 at gmail dot com
  2011-05-09 14:38 ` [Bug c++/48935] [C++0x] " redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: takechi101010 at gmail dot com @ 2011-05-09 14:10 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935

--- Comment #1 from Takeshi Watanabe <takechi101010 at gmail dot com> 2011-05-09 14:02:33 UTC ---
Created attachment 24212
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24212
code


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/48935] New: Name lookup error at enum class
@ 2011-05-09 14:12 takechi101010 at gmail dot com
  2011-05-09 14:10 ` [Bug c++/48935] " takechi101010 at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: takechi101010 at gmail dot com @ 2011-05-09 14:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935

           Summary: Name lookup error at enum class
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: takechi101010@gmail.com


I got the following error:

gcc-enum-class-test.cxx:9:7: internal compiler error: in constructor_name_p, at
cp/name-lookup.c:1862
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

compiling the attached code.
I don't know much about c++0x but I think that should be an error.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/48935] [C++0x] Name lookup error at enum class
  2011-05-09 14:12 [Bug c++/48935] New: Name lookup error at enum class takechi101010 at gmail dot com
  2011-05-09 14:10 ` [Bug c++/48935] " takechi101010 at gmail dot com
@ 2011-05-09 14:38 ` redi at gcc dot gnu.org
  2011-05-25 13:09 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2011-05-09 14:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.05.09 14:30:51
            Summary|Name lookup error at enum   |[C++0x] Name lookup error
                   |class                       |at enum class
     Ever Confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-09 14:30:51 UTC ---
reduced:

  enum class ENUM { a };

  ENUM::Type func() { return ENUM::a; }


possibly related to PR 43509


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/48935] [C++0x] Name lookup error at enum class
  2011-05-09 14:12 [Bug c++/48935] New: Name lookup error at enum class takechi101010 at gmail dot com
  2011-05-09 14:10 ` [Bug c++/48935] " takechi101010 at gmail dot com
  2011-05-09 14:38 ` [Bug c++/48935] [C++0x] " redi at gcc dot gnu.org
@ 2011-05-25 13:09 ` jason at gcc dot gnu.org
  2011-05-25 14:41 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-25 13:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/48935] [C++0x] Name lookup error at enum class
  2011-05-09 14:12 [Bug c++/48935] New: Name lookup error at enum class takechi101010 at gmail dot com
                   ` (2 preceding siblings ...)
  2011-05-25 13:09 ` jason at gcc dot gnu.org
@ 2011-05-25 14:41 ` jason at gcc dot gnu.org
  2011-05-25 15:29 ` jason at gcc dot gnu.org
  2011-05-25 15:30 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-25 14:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 14:35:20 UTC ---
Author: jason
Date: Wed May 25 14:35:17 2011
New Revision: 174205

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174205
Log:
    PR c++/48935
    * parser.c (cp_parser_constructor_declarator_p): Don't check
    constructor_name_p for enums.
    (cp_parser_diagnose_invalid_type_name): Correct error message.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/enum16.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/parse/error15.C


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/48935] [C++0x] Name lookup error at enum class
  2011-05-09 14:12 [Bug c++/48935] New: Name lookup error at enum class takechi101010 at gmail dot com
                   ` (3 preceding siblings ...)
  2011-05-25 14:41 ` jason at gcc dot gnu.org
@ 2011-05-25 15:29 ` jason at gcc dot gnu.org
  2011-05-25 15:30 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-25 15:29 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.1

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 15:27:59 UTC ---
Fixed for 4.6.1.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug c++/48935] [C++0x] Name lookup error at enum class
  2011-05-09 14:12 [Bug c++/48935] New: Name lookup error at enum class takechi101010 at gmail dot com
                   ` (4 preceding siblings ...)
  2011-05-25 15:29 ` jason at gcc dot gnu.org
@ 2011-05-25 15:30 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-25 15:30 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48935

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-25 15:26:47 UTC ---
Author: jason
Date: Wed May 25 15:26:42 2011
New Revision: 174210

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174210
Log:
    PR c++/48935
    * parser.c (cp_parser_constructor_declarator_p): Don't check
    constructor_name_p for enums.
    (cp_parser_diagnose_invalid_type_name): Correct error message.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/enum16.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/parser.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/parse/error15.C


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-05-25 15:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-09 14:12 [Bug c++/48935] New: Name lookup error at enum class takechi101010 at gmail dot com
2011-05-09 14:10 ` [Bug c++/48935] " takechi101010 at gmail dot com
2011-05-09 14:38 ` [Bug c++/48935] [C++0x] " redi at gcc dot gnu.org
2011-05-25 13:09 ` jason at gcc dot gnu.org
2011-05-25 14:41 ` jason at gcc dot gnu.org
2011-05-25 15:29 ` jason at gcc dot gnu.org
2011-05-25 15:30 ` jason at gcc dot gnu.org

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).