Development

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • New: ICE redeclaring template as non-template

    9 answers - 407 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    The following invalid code snippet triggers an ICE since GCC 4.0.1:
    template<intunion A;
    struct A;
    bug.cc:2: error: redeclaration of 'A<<anonymous>' as a non-template
    bug.cc:2: internal compiler error: tree check: expected class 'type', have
    'exceptional' (error_mark) in xref_tag, at cp/decl.c:9670
    Please submit a full bug report, [etc.]
  • No.1 | | 158 bytes | |

    --
    reichelt at gcc dot gnu dot org changed:
    What |Removed |Added
    Severity|normal |minor
    Target Milestone| |4.0.4
  • No.2 | | 85 bytes | |

    Comment #1 from reichelt at gcc dot gnu dot org 2006-08-14 08:30
    Testing a patch.
  • No.3 | | 203 bytes | |

    Comment #2 from patchapp at dberlin dot org 2006-08-15 00:45
    Subject: Bug number PR c++/28710
    A patch for this bug has been added to the patch tracker.
    The mailing list url for the patch is
  • No.4 | | 78 bytes | |

    Comment #3 from pinskia at gcc dot gnu dot org 2006-08-16 05:41
    Confirmed.
  • No.5 | | 437 bytes | |

    Comment #4 from reichelt at gcc dot gnu dot org 2006-08-17 08:06
    Subject: Bug 28710

    Author: reichelt
    Date: Thu Aug 17 08:06:27 2006
    New Revision: 116211

    URL:
    Log:
    PR c++/28710
    * decl.c (xref_tag): Improve error message. Return early on error.

    * gdg/template/redecl4.C: New test.

    Added:

    Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
  • No.6 | | 352 bytes | |

    Comment #5 from reichelt at gcc dot gnu dot org 2006-08-17 08:12
    Subject: Bug 28710

    Author: reichelt
    Date: Thu Aug 17 08:12:00 2006
    New Revision: 116212

    URL:
    Log:
    PR c++/28710
    * decl.c (xref_tag): Improve error message. Return early on error.

    * gdg/template/redecl4.C: New test.

    Added:

    Modified:
  • No.7 | | 352 bytes | |

    Comment #5 from reichelt at gcc dot gnu dot org 2006-08-17 08:12
    Subject: Bug 28710

    Author: reichelt
    Date: Thu Aug 17 08:12:00 2006
    New Revision: 116212

    URL:
    Log:
    PR c++/28710
    * decl.c (xref_tag): Improve error message. Return early on error.

    * gdg/template/redecl4.C: New test.

    Added:

    Modified:
  • No.8 | | 352 bytes | |

    Comment #6 from reichelt at gcc dot gnu dot org 2006-08-17 08:55
    Subject: Bug 28710

    Author: reichelt
    Date: Thu Aug 17 08:55:17 2006
    New Revision: 116216

    URL:
    Log:
    PR c++/28710
    * decl.c (xref_tag): Improve error message. Return early on error.

    * gdg/template/redecl4.C: New test.

    Added:

    Modified:
  • No.9 | | 115 bytes | |

    Comment #7 from reichelt at gcc dot gnu dot org 2006-08-17 08:57
    Fixed on mainline, 4.1 branch, and 4.0 branch.

Re: New: ICE redeclaring template as non-template


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 3 =
QUESTION ON "Development"

EMSDN.COM