Plaintiffs in these four actions seek declaratory relief as successors in interest to alleged members of and depositors in defendant The Hibernia Savings and Loan Society, hereafter referred to as the society. Demurrers were sustained to amended complaints without leave to amend upon the ground that neither the first nor the second counts thereof stated a cause of action, and upon the specific ground that relief was barred by the statute of limitations and by laches. Special demurrers and motions to strike portions of the complaints were interposed but were not ruled upon by the trial court. The court did, however, grant motions of some of the individual defendants to dismiss the actions on the ground that declaratory relief was not “necessary or proper.” (Code Civ. Proc., sec. 1061.) Judgments were entered in the four actions in favor of defendants. The appeals therefrom are submitted on a single set of briefs. Inasmuch as the amended complaints in the four actions contain substantially the same allegations and exhibits, we single out the complaint in the Maguire case for discussion of the facts and law involved in the several cases. The following statement of the facts is based on that complaint.
Defendant society was organized as a savings bank in 1859 under an act authorizing the formation of corporations “for the purpose of engaging in any species of trade or commerce.” (Stats. 1853, p. 87.) The act provided for the formation of corporations having a capital stock and made no provision for corporations composed of members rather than stockholders. (See
People
v.
Perrin,
Bylaws and rules of order were adopted in 1859 governing the mutual rights, duties and privileges of members of *724 the society. It was provided therein that “Those who shall sign these by-laws . . . and pay the entrance fee of two dollars, shall be styled and considered members of this corporation. Those, who, in addition to the above, shall hold one or more shares of its stock, shall further be styled and considered stockholders. ...” Members of the society were entitled to make deposits in sums of not less than $2.50 and were to be furnished with passbooks in which their deposits would be entered. It was further provided that “the fixed value of each share shall be One Hundred Dollars,” and that whenever the amount to the credit of a depositor “shall form a full share, he shall be entitled to a certificate of stock, up to the number of twenty shares, the corresponding debt being entered on his passbook,” and any “excess over this number shall become a simple deposit,” which “shall share equally in all dividends . . . declared, or in losses . . . sustained.” The bylaws could be amended only by three-fourths of the shares represented at a meeting of the society, and the rules of order, by a vote of three-fourths of the members present at a meeting.
In 1862 a statute was enacted specifically providing for the formation of corporations “for the purpose of aggregating the funds and savings of the members thereof and others.” (Stats. 1862, p. 199.) It authorized the incorporation of savings banks with or without capital stock. In 1864 the act was amended to provide that “All corporations for the accumulation, preservation, and investment of funds and savings, and all associations or societies for the like purpose, claiming in good faith to be incorporated under the laws of this State, may avail themselves of the provisions of and become incorporated under this Act by filing with the County Clerk . . . and . . . Secretary of State, a certificate stating their intention and election to become so incorporated, which intention and election may be made and declared by the Trustees or Acting Trustees of such corporation, association, or-society, or a majority thereof. . . .” (Stats. 1864, p. 531.) In August, 1864, defendant society, following favorable vote of its members, resolved to become incorporated under the amended statute and filed the required certificate, which recited that the society would have no capital stock.
On September 29, 1864, a new code of bylaws was adopted by the board of directors. Section 1, article 4, provided that all persons who were members of the society on August 29, *725 1864, should be deemed and considered members of the corporation; that as speedily as possible the signatures of such persons should be procured to an agreement on their part to become members of the corporation and ratifying the reincorporation; that others would be permitted to become members by vote of the directors and not otherwise; and that membership should not pass with the ownership of moneys deposited with or under the control of the corporation. On several occasions thereafter the board of directors amended the bylaws. In 1867, section 1, article 4, was amended to apply only to persons who were members on August 29, 1864, and whose accounts had not since been closed. In 1868, it was again amended to apply only to persons who, on August 29, 1864, “had respectively not less than one hundred dollars to his credit, and whose accounts were not subsequently at any time closed,” and a provision was added that “such persons shall sign an agreement on their part to become members.” In 1870 a further amendment provided that “All persons, who, on November 1st, 1870 had signed the agreement to become members of, and who then had accounts open with this corporation, are deemed and considered members thereof.” In 1871, the date “November 1st, 1870” was changed to “January 1st, 1871.” In 1874, the article was again amended to provide that “The only members of this Corporation are the persons who have signed the agreement hereinafter described, and who have kept accounts open with the Corporation since they respectively signed said agreement. Membership ceases when a member once closes his or her account.” In 1886 another amendment added the provision that “Any person shall cease to be a member of this Corporation . . . who shall not have continuously and at all times, at least One Hundred Dollars to his or her credit upon an open deposit account on the books of this corporation.” Later amendments made no substantial change relative to membership.
Section 6, article 22, of the bylaws of 1864 dealt with depositors who were not members and provided that “The board of directors shall have the right to determine the terms and conditions upon which deposits will be received from persons not members of the corporation, and to make contracts in the name of the corporation with such persons for that purpose. Until otherwise provided by such contracts, *726 depositors shall be entitled to the same share of profits as members. ’ ’ In 1868 the article was amended by deleting the reference to contracts authorized or made with depositors who were not members. In 1888, the provision was repealed and a bylaw adopted providing that “the board of directors shall have the right to determine the terms and conditions upon which deposits will be received” but that “until otherwise provided by the board of directors, depositors who are not members shall get a dividend equal to that given to members.” This provision was not later altered.
In the first count of the complaint plaintiffs claim membership in the society as assignees of Michael Maguire, who, it is alleged, entered into a “contract of membership” with the society on March 10, 1862, by signing the bylaws of 1859 and paying the entrance fee of two dollars. It is alleged that a passbook showing the payment of such membership fee and a deposit of $2,498 was issued to Michael Maguire as evidence of his contract of membership, that on October 5, 1922, he assigned to plaintiffs his account, membership, and all right and interest in the society, and that he and his assignees continuously maintained a deposit with the society which at the commencement of this action amounted to approximately $135. It is further alleged that it was the plan and intention of the incorporators that the society should be conducted as a membership corporation, wherein the members were to be the owners; that this plan was carried out by the members, stockholders, and trustees without objection, the members alone exercising the right to vote, elect trustees, amend bylaws, and hold meetings; that while the society issued shares of stock to certain members between June 14, 1859, and November 29, 1861, the outstanding shares were voluntarily surrendered and cancelled after the last mentioned date; that all but four certificates had been cancelled by June 27, 1863, the whereabouts of the four being unknown, and thereafter the society was composed of members only, none of whom held any shares of stock; that dividends were paid to members on their deposits while no dividends were ever declared or paid upon the outstanding stock; that the members were recognized and considered as the owners; that after the reineorporation of August 31, 1864, and until September 29, 1864, the society conducted its business as it had prior thereto, having the same members, trustees or di *727 rectors, and bylaws; that on September 29, 1864, the directors, without authority, vote or consent of, and without any action by the members, purported to adopt the new code of bylaws mentioned above, and thereafter to amend the same from time to time, in an attempt to deprive existing members of their rights as members of the society.
It is alleged in the first count that plaintiffs claim the rights of a member which claim is controverted by defendants; that the individual defendants claim to be the only members of the society, predicating their claims to membership on election by the directors; and, that plaintiffs deny that defendants are members. It is further alleged that the society has accumulated a reserve fund of approximately $8,000,000; that defendants intend to reorganize the society into a capital stock corporation pursuant to section 29 of the Bank Act [Deering’s Gen. Laws, 1937, Act 652; Stats. 1909, p. 87 as amended], convert the reserve fund into capital stock, and distribute the shares thereof among the individual defendants; and that by reason of the facts alleged, an actual controversy exists relating to the legal rights and duties of the respective parties under the written instruments and contracts and in respect to the property rights of the respective parties in the society.
The second count is based upon an alleged controversy regarding the nature and extent of plaintiffs’ rights as depositors in the society. Plaintiffs here again claim as assignees of Maguire and, in addition to their admitted right to receive the amount of the deposits in their accounts together with accrued interest thereon, claim the right to share in the profits of the society, and assert that as depositors they have the “same rights in the reserve fund ... as any member of said corporation.” These claims are predicated, in part, upon the above-mentioned section 6, article 22, of the bylaws of 1864, and the 1868 and 1888 amendments thereto. The second count also alleges that neither Maguire nor his successors made any contract modifying or waiving any right as a depositor to the same share of profits or dividends as a member; that no provision to that effect was made by the society; and that after the reincorporation of 1864 no distribution of any dividend or profits was made to any depositor or to any member, but that all profits were accumulated in the reserve fund which defendants intend to con *728 vert into capital stock and distribute among themselves. Finally, it alleges that an actual controversy exists by reason of the fact that defendants deny that plaintiffs have the rights claimed by them. The complaint requests the court to enter judgment “construing the written instruments and contracts, and declaring the rights and duties of plaintiffs and defendants in said defendant corporation.”
Plaintiffs contend that the trial court erred in sustaining a demurrer to the complaint for want of facts. A complaint for declaratory relief is legally sufficient if it sets forth facts showing the existence of an actual controversy relating to the legal rights and duties of the respective parties under a written instrument and requests that these rights and duties be adjudged by the court. (Code Civ. Proc., sec. 1060;
Moss
v.
Moss,
Defendants, however, contend, in effect, that the complaint fails to state a cause of action for declaratory relief unless it appears therefrom that plaintiffs are entitled to a favorable declaration. They urge that the written instruments set forth may be construed on demurrer and if it appears that plaintiffs lack the rights asserted, they are not entitled to declaratory relief. Accordingly, defendants argue the merits of the controversy. This court has never expressly determined whether a complaint in an action for declaratory relief is defective if the facts alleged show that the plaintiff is not entitled to a favorable declaration. (See
Pacific States Corp.
v.
Pan-American Bank, supra,
at p. 64;
*729
Henderson
v.
Oroville-Wyandotte Irr. Dist.,
The purpose of a declaratory judgment is “to serve some practical end in quieting or stabilizing an uncertain or disputed jural relation.”
(New York Foreign Trade Z. Operators
v.
State Liquor A.,
Defendants cite
Bogardus
v.
Santa Ana
W.
G. Assn.,
Defendants also argue that the decision in
Moss
v.
Moss,
A controversy regarding the status of one claiming membership in a corporation is a proper subject of a declaratory judgment
(Honetsky
v.
Russian Consol. Mut. Aid Society of America,
There are no other circumstances appearing on the face of the complaint which indicate that declaratory relief is not “necessary or proper.” Defendants contend, however, that mandamus, quo warranto, and injunctive relief are available to plaintiffs for the protection of their rights and that the trial court had discretion to deny declaratory relief on the ground that it was not necessary or proper be
*732
cause of the existence of other remedies. Defendants do not point out, nor are we able to ascertain, upon what theory the suggested alternative remedies would be available to plaintiffs, or, if available, that they would be speedy or adequate or serve as well as or better than the remedy invoked. While some authorities limit a trial court’s discretion to refuse to make a declaration on the ground that other remedies are available to cases where special statutory proceedings have been provided for the particular type of case or where other remedies would afford more effective relief (see Borchard, Declaratory Judgments, pp. 302-303, 325-331, 375; Anderson, Declaratory Judgments, pp. 521, 530;
cf. Communist Party
v.
Peek,
Defendants further argue that the trial court properly exercised its discretion to refuse declaratory relief because plaintiffs assertedly abused leave to amend their complaint by failing to make averments called for by demurrers sustained to earlier complaints, by omitting allegations, and by making allegations contrary to those in earlier complaints. Abuse of leave to amend is not a ground for the exercise of the trial court’s discretion under section 1061 of the Code of Civil Procedure. The procedure and practice with respect to amendments in declaratory actions is similar to that prevailing in ordinary actions at law and suits in equity (see Anderson, Declaratory Judgments, p. 287), and when a party in an action for remedial or preventive relief abuses leave to amend a pleading, the trial court may refuse to permit the filing of the amendment or may strike the amended pleading from the files. (See
Wheeler
v.
West,
Plaintiffs next contend that it was error to sustain the demurrer on the ground that the alleged causes of action were barred by the statute of limitations and by laches. They argue, first, that the statute of limitations can have no application to an action for declaratory relief since the main allegation in such an action is the existence of an actual, and consequently, present controversy.
(Cf. Kirn
v.
Noyes,
It is the general rule that a cause of action accrues when a suit may be maintained thereon, and the statute of limitations then begins to run.
(Dillon
v.
Board of Pension Commrs.,
Plaintiffs next argue that no invasion of their rights or title has yet occurred and that, therefore, the present action is not barred by the statute of limitations nor by laches. With respect to the first count, however, defendants contend that plaintiffs’ predecessor was excluded from membership after the adoption of, and pursuant to, the bylaws of September 29, 1864, that a remedy was then available to redress the wrongs thus inflicted, and that the statute of limitations was set in motion at that date. They argue that plaintiffs and their predecessor were denied the privileges *735 of membership and that the enactment of bylaws purporting to restrict membership to persons who had signed a particular agreement and whose accounts did not fall below $100 terminated the membership.
It does not appear from the allegations of the complaint that plaintiffs or their predecessor were deprived of the right to attend meetings, vote thereat, share in dividends or otherwise participate in the affairs of the society. Nor does it appear that they had knowledge of the passage of the bylaws, and the authorities agree that if lapse of time can bar an action by a stockholder to establish his interest in a corporation, it does not commence to run under the statute of limitations or doctrine of laches until the stockholder has knowledge that his rights are denied or that his status is controverted by the corporation.
(Yeaman
v.
Galveston City Co.,
Defendants contend that under the doctrine of stale claims lapse of 'time is a defense to an equitable action independent of statutory limitations or laches. They argue that
*736
since the rights here sought to be declared had their origin in the contract of 1862 and since a determination of those rights requires an inquiry into transactions commencing in 1859, plaintiffs’ claim of membership is stale and, consequently, barred. The policy of this state with respect to lapse of time is embodied in statutes applicable to both legal and equitable actions, and mere lapse of time, other .than that prescribed by such statutes, does not bar relief.
(Wolpert
v.
Gripton,
The second count does not disclose any past invasion of plaintiffs’ alleged rights as depositors but, on the contrary, alleges that there has been equality of treatment between depositors and members in the past, and that distribution of the reserve fund in a manner inimical to plaintiffs’ asserted rights is to occur in the future.
It does not appear from the face of the complaint, therefore, that the cause of action alleged in either the first or second count is barred by the statute of limitations or by laches.
We conclude that the trial court erred in sustaining the general demurrer to the complaint and in dismissing the action. In view of the conclusion that the complaint is sufficient against general demurrer, it is unnecessary to consider the merits of plaintiffs’ claims and we express no opinion with regard thereto. Nor do we pass upon any of the grounds of special demurrer urged by defendants. It has been held that when a complaint is good against a general demurrer, it is an abuse of discretion for the trial court to sustain the demurrer without leave to amend because of defects in the form of pleading.
(Wennerholm
v.
Stanford Univ. Sch. of Med.,
The judgments in the four actions are reversed.
Shenk, J., Edmonds, J., Carter, J., Traynor, J., Ward, J. pro tern., and Griffin, J. pro tem., concurred.
Respondents’ petition for a rehearing was denied March 27, 1944.
