Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311857 - Indexer can't index the following code:) sign, Eclipse is crashed! because of stack overflow
Summary: Indexer can't index the following code:) sign, Eclipse is crashed! because of...
Status: CLOSED DUPLICATE of bug 305970
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 7.0   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-06 07:40 EDT by Yonggang Luo CLA
Modified: 2010-05-18 02:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yonggang Luo CLA 2010-05-06 07:40:11 EDT
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
void f() {
  auto a = a; // expected-error{{variable 'a' declared with 'auto' type cannot appear in its own initializer}}
}

void g() {
  auto a; // expected-error{{declaration of variable 'a' with type 'auto' requires an initializer}}
  
  auto *b; // expected-error{{declaration of variable 'b' with type 'auto *' requires an initializer}}
}
Comment 1 Markus Schorn CLA 2010-05-18 02:25:01 EDT

*** This bug has been marked as a duplicate of bug 305970 ***