public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse,
@ 2012-01-19 22:41 pinskia at gcc dot gnu.org
  2012-01-19 22:58 ` [Bug c++/51908] " pinskia at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-19 22:41 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51908
           Summary: ICE in cp_parser_abort_tentative_parse,
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pinskia@gcc.gnu.org


Testcase:
struct foo
{
    template <typename Ret, typename... Args>
    operator decltype(static_cast<Ret (*)(Args...)>(0)) () const;
};
--- CUT ---
Another testcase:
struct foo
{
    template <typename Ret, typename... Args>
    operator decltype(static_cast<Ret (*)(Args...)>(nullptr)) () const;
};


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

* [Bug c++/51908] ICE in cp_parser_abort_tentative_parse,
  2012-01-19 22:41 [Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse, pinskia at gcc dot gnu.org
@ 2012-01-19 22:58 ` pinskia at gcc dot gnu.org
  2012-01-26 23:34 ` [Bug c++/51908] [C++11] ICE in cp_parser_abort_tentative_parse with decltype and variable template arguments pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-19 22:58 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-19 22:30:13 UTC ---
pinskia@server:~/src/local$ ~/local-gcc/bin/gcc t.cc -std=c++11
t.cc:4:54: internal compiler error: in cp_parser_abort_tentative_parse, at
cp/parser.c:22867
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
pinskia@server:~/src/local$ ~/local-gcc/bin/gcc t.cc --version
gcc (GCC) 4.7.0 20120119 (experimental) [trunk revision 183295]
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


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

* [Bug c++/51908] [C++11] ICE in cp_parser_abort_tentative_parse with decltype and variable template arguments
  2012-01-19 22:41 [Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse, pinskia at gcc dot gnu.org
  2012-01-19 22:58 ` [Bug c++/51908] " pinskia at gcc dot gnu.org
@ 2012-01-26 23:34 ` pinskia at gcc dot gnu.org
  2013-05-17 10:49 ` paolo.carlini at oracle dot com
  2013-06-05 17:31 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-01-26 23:34 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org
            Summary|ICE in                      |[C++11] ICE in
                   |cp_parser_abort_tentative_p |cp_parser_abort_tentative_p
                   |arse,                       |arse with decltype and
                   |                            |variable template arguments

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-26 22:27:42 UTC ---
This still fails on the trunk:
GNU C++ (GCC) version 4.7.0 20120126 (experimental) [trunk revision 183553]
(mips64-linux-gnu)
    compiled by GNU C version 4.7.0 20120126 (experimental) [trunk revision
183553], GMP version 4.3.2, MPFR version 3.0.0, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 56535e31bb34ae0381b37def6782a84b
t.cc:4:54: internal compiler error: in cp_parser_abort_tentative_parse, at
cp/parser.c:22867
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/51908] [C++11] ICE in cp_parser_abort_tentative_parse with decltype and variable template arguments
  2012-01-19 22:41 [Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse, pinskia at gcc dot gnu.org
  2012-01-19 22:58 ` [Bug c++/51908] " pinskia at gcc dot gnu.org
  2012-01-26 23:34 ` [Bug c++/51908] [C++11] ICE in cp_parser_abort_tentative_parse with decltype and variable template arguments pinskia at gcc dot gnu.org
@ 2013-05-17 10:49 ` paolo.carlini at oracle dot com
  2013-06-05 17:31 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-05-17 10:49 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-05-17
     Ever confirmed|0                           |1


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

* [Bug c++/51908] [C++11] ICE in cp_parser_abort_tentative_parse with decltype and variable template arguments
  2012-01-19 22:41 [Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse, pinskia at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2013-05-17 10:49 ` paolo.carlini at oracle dot com
@ 2013-06-05 17:31 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-06-05 17:31 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

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

--- Comment #4 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-05 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-19 22:41 [Bug c++/51908] New: ICE in cp_parser_abort_tentative_parse, pinskia at gcc dot gnu.org
2012-01-19 22:58 ` [Bug c++/51908] " pinskia at gcc dot gnu.org
2012-01-26 23:34 ` [Bug c++/51908] [C++11] ICE in cp_parser_abort_tentative_parse with decltype and variable template arguments pinskia at gcc dot gnu.org
2013-05-17 10:49 ` paolo.carlini at oracle dot com
2013-06-05 17:31 ` 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).