public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65646] New: ICE in invalid syntax
@ 2015-04-01  6:17 bernd.edlinger at hotmail dot de
  2015-04-01  7:57 ` [Bug c++/65646] [5 Regression] " mpolacek at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2015-04-01  6:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

            Bug ID: 65646
           Summary: ICE in invalid syntax
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bernd.edlinger at hotmail dot de

Hi,

on current trunk (snapshot gcc-5-20150329, r221765)

the following file causes an ICE:

$ cat test.cpp 
const_iterator
#include <sstream>

$ g++ test.cpp
.... lots of warnings/errors, and then:
/home/ed/gnu/install/include/c++/5.0.0/istream:451:14: note: previous
declaration 'std::basic_istream<char>::__istream_type&
std::basic_istream<char>::ignore'
/home/ed/gnu/install/include/c++/5.0.0/istream: At global scope:
/home/ed/gnu/install/include/c++/5.0.0/istream:648:29: error: 'streamsize' has
not been declared
     getline(char_type* __s, streamsize __n, char_type __delim);
                             ^
/home/ed/gnu/install/include/c++/5.0.0/istream:653:12: error:
'std::basic_istream<char>& std::basic_istream<char>::ignore' is not a static
data member of 'class std::basic_istream<char>'
     ignore(streamsize __n);
            ^
/home/ed/gnu/install/include/c++/5.0.0/istream:653:12: error: 'streamsize' was
not declared in this scope
/home/ed/gnu/install/include/c++/5.0.0/istream:653:26: internal compiler error:
Segmentation fault
     ignore(streamsize __n);
                          ^
0xce846f crash_signal
    ../../gcc-5-20150329/gcc/toplev.c:383
0x719f29 tree_check(tree_node*, char const*, int, char const*, tree_code)
    ../../gcc-5-20150329/gcc/tree.h:2845
0x719f29 determine_visibility(tree_node*)
    ../../gcc-5-20150329/gcc/cp/decl2.c:2392
0x68172d cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
    ../../gcc-5-20150329/gcc/cp/decl.c:6696
0x761031 cp_parser_init_declarator
    ../../gcc-5-20150329/gcc/cp/parser.c:17299
0x76175c cp_parser_single_declaration
    ../../gcc-5-20150329/gcc/cp/parser.c:23811
0x7621dd cp_parser_explicit_specialization
    ../../gcc-5-20150329/gcc/cp/parser.c:14622
0x76f1bf cp_parser_declaration
    ../../gcc-5-20150329/gcc/cp/parser.c:11331
0x76d86a cp_parser_declaration_seq_opt
    ../../gcc-5-20150329/gcc/cp/parser.c:11264
0x76e0e5 cp_parser_namespace_body
    ../../gcc-5-20150329/gcc/cp/parser.c:16268
0x76e0e5 cp_parser_namespace_definition
    ../../gcc-5-20150329/gcc/cp/parser.c:16249
0x76f169 cp_parser_declaration
    ../../gcc-5-20150329/gcc/cp/parser.c:11366
0x76d86a cp_parser_declaration_seq_opt
    ../../gcc-5-20150329/gcc/cp/parser.c:11264
0x76db7f cp_parser_translation_unit
    ../../gcc-5-20150329/gcc/cp/parser.c:4100
0x76db7f c_parse_file()
    ../../gcc-5-20150329/gcc/cp/parser.c:33192
0x8a0502 c_common_parse_file()
    ../../gcc-5-20150329/gcc/c-family/c-opts.c:1057
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
@ 2015-04-01  7:57 ` mpolacek at gcc dot gnu.org
  2015-04-01  8:02 ` mpolacek at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-01  7:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-04-01
                 CC|                            |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |5.0
            Summary|ICE in invalid syntax       |[5 Regression] ICE in
                   |                            |invalid syntax
     Ever confirmed|0                           |1


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
  2015-04-01  7:57 ` [Bug c++/65646] [5 Regression] " mpolacek at gcc dot gnu.org
@ 2015-04-01  8:02 ` mpolacek at gcc dot gnu.org
  2015-04-01  8:12 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-01  8:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r213641.


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
  2015-04-01  7:57 ` [Bug c++/65646] [5 Regression] " mpolacek at gcc dot gnu.org
  2015-04-01  8:02 ` mpolacek at gcc dot gnu.org
@ 2015-04-01  8:12 ` jakub at gcc dot gnu.org
  2015-04-01 13:54 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-01  8:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org,
                   |                            |jason at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Reduced testcase:

template <typename = int> class A {};
template <> A<> &A<>::a;


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
                   ` (2 preceding siblings ...)
  2015-04-01  8:12 ` jakub at gcc dot gnu.org
@ 2015-04-01 13:54 ` jason at gcc dot gnu.org
  2015-04-01 14:02 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-01 13:54 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

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

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


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
                   ` (3 preceding siblings ...)
  2015-04-01 13:54 ` jason at gcc dot gnu.org
@ 2015-04-01 14:02 ` rguenth at gcc dot gnu.org
  2015-04-01 16:37 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-01 14:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |error-recovery
           Priority|P3                          |P5


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
                   ` (4 preceding siblings ...)
  2015-04-01 14:02 ` rguenth at gcc dot gnu.org
@ 2015-04-01 16:37 ` jason at gcc dot gnu.org
  2015-04-01 16:47 ` bernd.edlinger at hotmail dot de
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-01 16:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Apr  1 16:36:50 2015
New Revision: 221810

URL: https://gcc.gnu.org/viewcvs?rev=221810&root=gcc&view=rev
Log:
    PR c++/65646
    * decl.c (grokvardecl): Don't call check_explicit_specialization
    for non-template members of a class template.

Added:
    trunk/gcc/testsuite/g++.dg/template/static36.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
                   ` (5 preceding siblings ...)
  2015-04-01 16:37 ` jason at gcc dot gnu.org
@ 2015-04-01 16:47 ` bernd.edlinger at hotmail dot de
  2015-04-01 16:51 ` jason at gcc dot gnu.org
  2015-04-23 15:55 ` jason at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2015-04-01 16:47 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

--- Comment #5 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
gcc/testsuite/ChangeLog missing?


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
                   ` (6 preceding siblings ...)
  2015-04-01 16:47 ` bernd.edlinger at hotmail dot de
@ 2015-04-01 16:51 ` jason at gcc dot gnu.org
  2015-04-23 15:55 ` jason at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-01 16:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #5)
> gcc/testsuite/ChangeLog missing?

https://gcc.gnu.org/codingconventions.html#ChangeLogs
"There is no established convention on when ChangeLog entries are to be made
for testsuite changes"

I prefer not to bother with the ChangeLog for tests.


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

* [Bug c++/65646] [5 Regression] ICE in invalid syntax
  2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
                   ` (7 preceding siblings ...)
  2015-04-01 16:51 ` jason at gcc dot gnu.org
@ 2015-04-23 15:55 ` jason at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-23 15:55 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65646

--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Apr 23 15:55:11 2015
New Revision: 222376

URL: https://gcc.gnu.org/viewcvs?rev=222376&root=gcc&view=rev
Log:
    PR c++/65646
    * pt.c (check_explicit_specialization): Don't
    SET_DECL_TEMPLATE_SPECIALIZATION for a variable with no template
    headers.
    * decl.c (grokvardecl): Revert earlier fix.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/pt.c


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

end of thread, other threads:[~2015-04-23 15:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01  6:17 [Bug c++/65646] New: ICE in invalid syntax bernd.edlinger at hotmail dot de
2015-04-01  7:57 ` [Bug c++/65646] [5 Regression] " mpolacek at gcc dot gnu.org
2015-04-01  8:02 ` mpolacek at gcc dot gnu.org
2015-04-01  8:12 ` jakub at gcc dot gnu.org
2015-04-01 13:54 ` jason at gcc dot gnu.org
2015-04-01 14:02 ` rguenth at gcc dot gnu.org
2015-04-01 16:37 ` jason at gcc dot gnu.org
2015-04-01 16:47 ` bernd.edlinger at hotmail dot de
2015-04-01 16:51 ` jason at gcc dot gnu.org
2015-04-23 15:55 ` 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).