forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cp-tree.h (SCOPE_PARTIAL_P): New macro.
(pushlevel_temporary): Remove. (add_scope_stmt): New function. * decl.c (pushlevel_temporary): Remove. (poplevel): Use add_scope_stmt. (start_decl_1): Likewise. * semantics.c (add_scope_stmt): New function. (do_pushlevel): Use it. (do_poplevel): Use it. (expand_stmt): Check SCOPE_PARTIAL_P. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30118 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
mmitchel
committed
Oct 21, 1999
1 parent
f4e94e2
commit 4f39667
Showing
6 changed files
with
116 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Build don't link: | ||
// Special g++ Options: -g | ||
// Origin: Mark Mitchell <mark@codesourcery.com> | ||
|
||
struct S | ||
{ | ||
~S (); | ||
}; | ||
|
||
void f () | ||
{ | ||
t: | ||
S s3; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Build don't link: | ||
// Origin: Mark Mitchell <mark@codesourcery.com> | ||
|
||
struct S | ||
{ | ||
S (); | ||
~S (); | ||
}; | ||
|
||
void f () | ||
{ | ||
{ | ||
S s1; | ||
|
||
t: | ||
S s2; | ||
; | ||
} | ||
|
||
goto t; // ERROR - jump avoids initialization of `s1' | ||
} |